Description

The <section> element defines a section of a document, such as header, footer etc.

The following table summarizes the usages context and the version history of this tag.

Placement:Inline
Content:Block, inline and text
Start/ End Tag:Start tag: required, End tag: required
Version:HTML 5

Syntax

The basic syntax of the <section> tag is given with:

HTML/XHTML: <section> ... </section>

The example below shows the <section> tag in action.

<section> 
    <h1>Welcome to Our Website</h1> 
    <p>Welcome and thank you for taking the time to visit our website.</p> 
</section>

Tag-Specific Attributes

The <section> tag doesn't have any specific attribute.

Global Attributes

Like all other HTML tags, the <section> tag supports the global attributes in HTML5.

Event Attributes

The <section> tag also supports the event attributes in HTML5.

Browser Compatibility

Element
<section>YesYesYesYesYes