Breaking

Sunday, May 12, 2019

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.09.04.05.011.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 »

No comments:

Post a Comment