HTML <section>Tag: The HTML<section> tag specifies different sections in a document. And the section tag divides the content into section and subsections. While the section tag is used when requirements of two headers or footers or any other section of documents needed. The main advantage of the section tag is, it is a semantic element, which describes its meaning to both browser and developer.
HTML <section>Tag
This HTML section tag supports both the global and the event attributes. Section tag grouped the generic block of related contents.
Syntax: <section>Text</section>
Browser compatibility
The HTML section tag is supported by different types of browsers.
- Chrome-6.0
- Firefox-4.0
- Opera-11.1
- Safari-5.0
- Internet Explorer-9.0
Example:
<!DOCTYPE html> <html> <body> <section> <h1>WWF</h1> <p>The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.</p> </section> </body> </html>
Output:
WWF
The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research, and restoration of the environment formerly named the World Wildlife Fund. WWF was founded in 1961.