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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access