Name
section — HTML5
Synopsis
<section> . . . </section>
Represents a section (a thematic grouping of content) of a document or application with its own internal outline and (optionally) a header and footer. The section element is not a generic container; it should be used only if the element’s contents should appear in the document’s outline.
Notes
HTML5 only.
Start/End Tags
Required/Required
Attributes
HTML5 Global Attributes
cite="
text
"
Provides a link to information about the source or author of the section.
Example
<body> <article> <h1>Common Birds</h1> <section> <h1>Chapter 1: Hummingbirds</h1> <p>A little something on hummingbirds.</p> </section> <section> <h1>Chapter 2: Turkeys</h1> <p>This is about turkeys</p> </section> </article> </body>
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.