Document Title
Each HTML 4 document must specify a document title. The document title as well being a method of telling users what the page is about, is also an important part of optimising your website.
There may be only one title and this should be contained within a pair of <title> </title> tags in the head section of the document.
The title may comprise of both regular text characters and character entities for special characters such as ampersand, copyright mark and accented characters.
Although the document title is not part of the actual document content the HTML 4 specification states that the user-agent (browser) must always make the document title available to the user.
For this reason it is recommended that the given title should be as descriptive as possible to help describe the document.
For example, a document entitled "Intro" merely suggests that the document is an introduction to something.
Whereas a title of "An Introduction to HTML 4" describes the content and the topic of that document.
Traditional PC Web browsers will display the document title in the title bar of the browser window as seen below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<title>An Introduction to HTML 4</title>
</head>
Back to HTML Tutorials |