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:
The example below shows the <section> tag in action.
Example
Try this code »<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.
Basic Support—
|
Further Reading
See tutorial on: HTML Layout.
Related tags: <div>, <header>, <footer>.

