HTML section Tag Tutorial

In this section, we will learn what HTML <section> element is and how to use it.

What is <section> Tag in HTML?

HTML <section> element is a container element and is used to group together a set of related elements and content.

Usually, a <section> element contains one or more headers and a set of elements, presenting related content.

HTML <section> Tag Syntax:

<section> content… </section>

HTML <section> Tag Values

The value we set for the <section> element is the content that deserves its own header and represents an independent section of an HTML document.

Example: using <section> tag in HTML

See the Pen using <section> tag in HTML by Omid Dehghan (@odehghan) on CodePen.

Leave a Reply