HTML <section> Tag
Description
The <section>
HTML element is used to represent a section within an article.
Any given web page or article could have many sections. For example, a homepage could have a section for introducing the company, another section for news items, and another section for contact information.
Properties
- Permitted Parents
- Any element that accepts flow content. Note that a <section> element must not be a descendant of an <address> element
- Content
- Block, inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
<section>
<h3>WWW</h3>
<p>WWW stands for 'World Wide Web'</p>
</section>
Attributes
None
Global Attributes
The <section>
tag also supports the Global Attributes in HTML5
Event Attributes
The <section>
tag also supports the Event Attributes in HTML5
Browser Support
Desktop | |||||
9 | 12 | 5 | 4 | 11.1 | 5 |
Tablets / Mobile | |||||
![]() |
|||||
Yes | Yes | 4 | 11.1 | 4.2 | Yes |
Last updated by CSSPortal on: 6th December 2019