A well-structured long page

Table of contents with working anchors.

HTML · A well-structured long pageAdvanced
<nav aria-label="On this page">
  <ol>
    <li><a href="#intro">Introduction</a></li>
    <li><a href="#setup">Setup</a></li>
  </ol>
</nav>
<article>
  <section id="intro"><h2>Introduction</h2><p>...</p></section>
  <section id="setup"><h2>Setup</h2><p>...</p></section>
</article>
headingssectionstocanchors