Lesson 4 - HEAD Tags


!Doctype

Since the HTML language is continually evolving, the <!DOCTYPE> tag was added to denote the version of html being written. The following is the !DOCTYPE tag for this page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

It declares that the document is written as an HTML 3.2 document conforming to the W3C standards. It is placed before the <HTML> tag. All HTML 3.2 documents should have this tag.

Cover all BASEs

The HEAD tag contains items that shouldn't be displayed in the main body of the document, but affect the document as a whole. Two such tags are <BASE> and <BASEFONT>.

The BASE tag is only allowed within the section enclosed by the HEAD tag. In simple non frames documents the only practical attribute is HREF="URL". The value entered for URL is accepted by the browser as the location of the current document. Any partial URLs on the page are then assumed to be based on the URL given by HREF.

To make a global font change the BASEFONT tag is used. This has the attributes SIZE and FACE. SIZE was added by Netscape to allow for a larger or smaller default text size. Valid values for this attribute are 1 through 7 and + or - 1 through 3. FACE was added by Microsoft to allow control of the preferred font face. The value should be a list of font names, the browser will use the first one in the list that matches a font on the viewer's computer.

Is it an INDEX?

One of the last tags allowed in the HEAD is the ISINDEX tag. t


Continue to: Lesson 4 - HEAD Tags