Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

The Title 61

4


Try to choose a title that’s both short and descriptive of the content. Your title should
be relevant even out of context. If someone browsing on the Web follows a random link
and ends up on this page, or if a person finds your title in a friend’s browser history list,
would he have any idea what this page is about? You might not intend the page to be
used independently of the pages you specifically linked to it, but because anyone can link
to any page at any time, be prepared for that consequence and pick a helpful title.


When search engines index your pages, each page title is captured
and listed in the search results. The more descriptive your page
title, the more likely it is that someone will choose your page from
all the search results.

NOTE

Also, because browsers put the title in the title bar of the window, you might have a limited
amount of space. (Although the text within the tag can be of any length, it might<br /> be cut off by the browser when it’s displayed.) Here are some examples of good titles:</p><br /> <title>Poisonous Plants of North America
Image Editing: A Tutorial
Upcoming Cemetery Tours, Summer 1999
Installing the Software: Opening the CD Case
Laura Lemay's Awesome Home Page

Here are some not-so-good titles:


Part Two
An Example
Nigel Franklin Hobbes
Minutes of the Second Meeting of the Fourth Conference of the<br /> Committee for the Preservation of English Roses, Day Four, After Lunch

Figure 4.1 shows how the follo wing title looks in a browser :


The Lion, the Witch, and the Wardrobe

FIGURE 4.1
The title appears in
the tab bar, not on
the page.

Free download pdf