Creating a Title
Each (X)HTML page must have a title element. A title should be short and descriptive. In most browsers, the title appears in the title bar of the window ( Figure 3.7 ). Perhaps even more importantly, the title is used by search indexes like Yahoo and Google as well as in your visitors' browsers' history lists and bookmarks.
Example 3.6. The title element should be placed in the head section. It is required.
<head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Antoni Gaudí - Introduction</title> </head> <body> </body>
Figure 3.7 The title of a Web page is shown in the title bar of the window.
To create a title
- Place the cursor between the opening and closing head tags (see page 62).
- Type <title>.
- Enter the title of your web page.
- Type </title>.