Heading Example
HTML Markup Details
h1element- The
h1element should contain the title for the web resource and may contain the title of the website. - The page should contain at least one and no more than two
h1elements. h2-h6elements- The
h2-h6elements should identify major and minor sections of the web resource. - Headings should be properly nested following the heading levels represented by the numerical values of the heading elements.
h2should be used as sub-heading after ah1h3should be used as sub-heading after ah2h4should be used as sub-heading after ah3h5should be used as sub-heading after ah4h6should be used as sub-heading after ah5
Example Code
<body>
...
<h2>Main Navigation Bar title</h2>
...
<h2>Quick Links Navigation Bar</h2>
...
<h1>Document title</h1>
<h2>Section 1 title</h2>
<h3>Sub-section 1.A title</h3>
<p>Section content ...</p>
<h3>Sub-section 1.B title</h3>
<p>Section content ...</p>
<h3>Sub-section 1.C title</h3>
<p>Section content ...</p>
<h2>Section 2 title</h2>
<h3>Sub-section 2.A title</h3>
<p>Section content ...</p>
<h3>Sub-section 2.B title</h3>
<p>Section content ...</p>
</body>
