2. Semantic Markup

2.3. The <section> tag


          The <section> element is used to group related elements and may be used to define navigation, in the header or footer, or within articles. Some examples where it can be used include the section of a web page for contact information, announcement section of a web page, and pages of a tabbed user interface. A section usually has some heading.

          The given markup below displays how the <section> element looks:


<section>
   <h1>This is a section heading</h1>
   <p>
   Hello world! Hello world! Hello world!
   Hello world! Hello world! Hello world!
   Hello world! Hello world! Hello world!
   </p>
</section>

          A section may contain a <header> as well as a <footer> element. It is analogous to a printed book section containing chapters or a section of a newspaper containing news items.