HTML and CSS Reference
In-Depth Information
Figure 1-15
Inserting h1 and h2 headings
7. Save your changes to the file and then reload or refresh the jprop.htm file in your
Web browser. Figure 1-16 shows the initial view of the page body content.
Figure 1-16
Viewing h1 and h2 headings in Dave's document
h1 heading
h2 headings
Grouping Headings
The interpretation of a particular heading depends on how it's used. For example, the h2
headings you just entered were used either to provide a title for articles or sections in the
Web page or as a subtitle to the main title of the page. You can indicate that an h2 head-
ing acts as a subtitle by grouping it with a main title heading using the hgroup element .
The hgroup element uses the syntax
heading elements
Search WWH ::

Custom Search