THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <section> Tag


Example

A section in a document, explaining what WWF is:

<section>
  <h1>WWF</h1>
  <p>The World Wide Fund for Nature (WWF) is....</p>
</section>
Try it yourself »

Definition and Usage

The <section> tag defines sections in a document, such as chapters, headers, footers, or any other sections of the document.


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<section> 6.0 12.0 9.0 4.0 5.0 11.1

Differences Between HTML 4.01 and HTML5

The <section> tag is new in HTML5.


Global Attributes

The <section> tag also supports the Global Attributes in HTML.


Event Attributes

The <section> tag also supports the Event Attributes in HTML.


Related Pages

HTML DOM reference: Section Object


Default CSS Settings

Most browsers will display the <section> element with the following default values:

Example

section {
    display: block;
}
Try it yourself »