HTML - Tags - <section>

#115 of 147

             <h4>heading 1</h4>
             <p>section 1</p>
             <h4>heading 2</h4>
             <p>section 2</p>

The section element creates a subdivision, similar to a chapter in a book.

A section should contain a heading element h1 through h6 as it's first child.

A live example:

heading 1

section 1

heading 2

section 2

N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath