HTML <section> tag

HTML <section> tag

The <section> tag defines sections in a document.

The section can be a chapters, footers, headers, subdivisions, of a document.

Note: Typically, but not always, sections have a heading.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <section> <h1>Harry Potter</h1> <p>Harry Potter is a series of fantasy novels written by British author J. K. Rowling.</p> </section> <section> <h1>Game of Thrones</h1> <p>Game of Thrones is an American fantasy drama television series created by David Benioff and D. B. Weiss. </p> </section> </body> </html>

Attributes

There is no special attributes for <section> tag. Only Global attributes.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author