- The section element represents a generic section of a document or application
- A
section
, in this context, is a thematic grouping of content, typically with aheading
- Sections should always have a heading, with very few exceptions
section
, in this context, is a thematic
grouping of content, typically with a heading
sections
would be
introduction
news item
contact information
div
element
insteadsection
element is appropriate only if the element's contents would be listed explicitly in the
document's outline<h1>Choosing an Apple</h1> <section> <h2 class="revert">Introduction</h2> <p>This document provides a guide to help with the important task of choosing the correct Apple</p> </section> <section> <h2 class="revert">Criteria</h2> <p> There are many different criteria to be considered when choosing an Apple — size, color, firmness, sweetness, tartness... </p> </section>
This document provides a guide to help with the important task of choosing the correct Apple.
There are many different criteria to be considered when choosing an Apple — size, color, firmness, sweetness, tartness...