ⓘ h2 – heading # T
The
h1
through
h6
elements are headings for
the sections with which they are associated.
Additional constraints and admonitions #
-
The “h2” element must not appear as a
descendant of the “address” element.
-
The “align” attribute on the “h2” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
any element that can contain
flow elements, hgroup
DOM interface #
interface HTMLHeadingElement : HTMLElement {};
Typical default display properties #
h2 {
display: block;
font-size: 1.5em;
margin-before: 0.83em;
margin-after: 0.83em;
margin-start: 0;
margin-end: 0;
font-weight: bold; }