Inside the Head
The head section of a HTML document follows the obligatory Document Type Definition (DTD) and is used to contain information about that document.
Typically this will include the document title and keywords that can be used by search engines to describe the document.
The document head may also contain script code and style sheets to determine how the contents should be presented.
In HTML 4 the entire head section may be contained within a pair of <head> </head> tags although these are entirely
optional and only serve to group the head contents together.
When reading HTML code it does help to see the head section contents grouped by the <head> </head> tags so they are included in the examples given in this book.
The <head> tag may optionally contain a new attribute named "profile" to specify the location of a meta data profile to be used by the document.
The profile attribute is not widely used but is given here tor completeness and may appear in the HTML code like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http: //www.w3.org/TR/html4/ strict . dtd">
<head prof ile=" http: //www.purl .org/metadata/dublin_core" >
[ head section content goes here ]
</head>
Like many of the new features in HTML 4 the profile attribute has been included to accommodate possible future developments in the use ot the language.
There arc anticipated advances in the way that the HTML page may be viewed on a variety of browsers (user agents) such as cellphones, PDAs and other devices in addition to the traditional PC Web browser.
Back to HTML Tutorials |