HTML Dog
Skip to navigation

HTML Tag: section

A general section of an HTML document. This could be used to split up an article, or to represent chapters, for example.

Optional Attributes

Global attributes

Example


<article>
    <section id="intro">
        <!-- An introduction -->
    </section>
    <section id="main_content">
        <!-- Main content -->
    </section>
    <section id="related">
        <ul>
            <li><a href="that.html">That related article</a></li>
            <li><a href="this.html">This related article</a></li>
        </ul>
    </section>
</article>