This chapter is from the book
Creating Section Headers
(X)HTML provides for up to six levels of headers in your Web page for separating your page into manageable chunks.
To organize your Web page with headers
- In the body section of your (X)HTML document, type <hn>, where n is a number from 1 to 6, depending on the level of header that you want to create.
- Type the contents of the header.
- Type </hn> where n is the same number used in step 1.
Example 3.10. You can use headers to give your document structure, like an outline.
<head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Antoni Gaudí - Introduction</title> </head> <body> <h1>Antoni Gaudí</h1> <h2>La Casa Milà</h2> <h2>La Sagrada Família</h2> </body>
Figure 3.11 The most common default display for first level headers is 24 pixels, Times New Roman, in boldface.