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:

1.
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.
2.
Type the contents of the header.
3.
Type </hn> where n is the same number used in step 1.
Figure 3.10. You can use headers to give your document structure, like an outline.

Figure 3.11. The most common default display for first level headers is 24 pixels, Times New Roman, in boldface.

✓ Tips

  • Think of your ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.