Elements – Section Tag


The HTML <section> element defines a section within an HTML page that is used when there is not a more specific semantic HTML element to represent it. Typically, a <section> element will include a heading element (<h1><h6>) as child element.

For example, a web page could be divided into various sections such as welcome, content and contact sections.

A <section> element should not be used in place of a <div> element if a generic container is needed. It should be used to define sections within an HTML page.

<html> <head> <title>Section Example</title> </head> <body> <section> <h1>Heading</h1> <p>Bunch of awesome content</p> </section> </body> </html>

More Information:

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.