Name
h1, h2, h3, h4, h5, h6 — <hn > . . . </hn >
Specifies a heading that briefly describes the section it
introduces. There are six levels of headings, from h1
(most important) to h6
(least important). HTML syntax
requires that headings appear in order (for example, an h2
should not precede an h1
) for proper document structure.
Doing so not only improves accessibility but aids in search engine
optimization (information in higher heading levels is given more
weight).
Attributes
Core, Internationalization, Events
align="center|left|right"
Deprecated. Used to align the header left, right, or centered on the page. Microsoft Internet Explorer 3.0 and earlier does not support right alignment.
Example
<h1>
Introduction</h1>
<p>In the beginning . . . </p>
Get HTML and XHTML Pocket Reference, 3rd 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.