What is the <section> element in HTML?

In HTML, the <section> element is used to display a standalone section in a document. All sections should always have a heading.

Syntax

<section> section content </section>

Code

The following code demonstrates the usage of <section> element in HTML. The content that we want to display as a standalone section is written within the opening and closing tags, <section> and </section>.

  • HTML

Free Resources