2.1. Headings

HTML Element: <H1 ...> ... </H1>

<H2 ...> ... </H2>

<H3 ...> ... </H3>

<H4 ...> ... </H4>

<H5 ...> ... </H5>

<H6 ...> ... </H6>
Attributes: ALIGN

H1 through H6 are used for document headings, with H1 being the first or top-level section headings, H2 second-level headings, H3 third-level headings, and so forth. However, a common style is to start the BODY with a level-one heading containing the same text as the TITLE element, treating H1 as a document title. In the remainder of the document, level-two headings (H2) are used for the major section headings, H3 for section subheadings, and so forth.

Most browsers render headings in boldface, with H1 the largest size and H6 the smallest size. The smaller headings should be used with ...

Get Core Web Programming, Second Edition 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.