Specifying a Page Title and Keywords

Perhaps you noticed in the preceding exercise that the complete path to the file appeared in the title bar of Internet Explorer. Usually when you view a Web page, a friendly, descriptive title appears in that spot instead. That text is specified by a <title> tag placed in the <head> section (also called the header). Here’s an example:

<title>The Garden Company</title>

Troubleshooting

Ensure that you place this tag in the <head> section, and not in the <body> section.

Another element you can place in the header is the <meta> tag, which is used to identify keywords related to your page. Placing appropriate keywords on your page makes it easier for people to find your page when they are searching the Web using a search ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.