HTML Tags
Advertisements

HTML5 <section> Tag

Topic: HTML5 Tags ReferencePrev|Next

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: Block
Content: Block, inline, and text
Start/End Tag: Start tag: required, End tag: required
Version: New in HTML5

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

The <section> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 4+
  • Google Chrome 6+
  • Internet Explorer 9+
  • Apple Safari 5+
  • Opera 11.1+

Further Reading

See tutorial on: HTML Layout.

Related tags: <div>, <header>, <footer>.

Advertisements
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties