F.5. Headers

Some text in an XHTML document may be more important than other text. For example, the text in this section is considered more important than a footnote. XHTML provides six headers, called header elements, for specifying the relative importance of information. Figure F.4 demonstrates these elements (H1 through h6). Header element H1 (line 15) is considered the most significant header and is typically rendered in a larger font than the other five headers (lines 1620). Each successive header element (i.e., h2, H3, etc.) is typically rendered in a progressively smaller font.

Figure F.4. Header elements h1 tHRough h6.

(This item is displayed on page 1478 in the print version)

1 6 7 8

"http://www.w3.org/1999/xhtml"> 9 10 Internet and WWW How to Program - Headers 11 12 13 14 15

Level 1 Header

16

Level 2 header

17

Level 3 header

18

Level 4 header

19

Level 5 header

20

Level 6 header

21 22 23

Portability Tip F 1

The text size used to display each header element can vary significantly between browsers. In Chapter 6, we discuss how to control the text size and other text properties.

 

Look and Feel Observation F 1

Placing a header at the top of every XHTML page helps viewers understand the purpose of each page.

 

Look and Feel Observation F 2

Use larger headers to emphasize more important sections of a Web page.

F 6 Linking

Категории