Section tag is used to distribute the content i.e, it distribute the sections and subsections.
For identification purposes, HTML sections usually have headings, like
The HTML section element, defined by section tags, defines a section of a document, web page, or an application:
Examples of semantic elements: –>
Your message has been sent to W3Schools.
means that the content inside is grouped (i.e. relates to a single theme), and should appear as an entry in an outline of the page.
The element is not a generic container element. When an element is needed only for styling purposes or as a convenience for scripting, authors are encouraged to use the
- A section, in this context, is a thematic grouping of content:
- A Web site’s home page could be split into sections for an introduction, news items, and contact information.
- The section element is not a generic container element. The section element is appropriate only if the contents would be listed explicitly in the document’s outline. [Example A]
- A section typically with a heading.
Note: Please ensure any code you add, whether embed code for a third-party tool, or your own custom coding, is fully responsive across screen sizes. You may find Embedresponsively.com helpful in fixing code that isn’t.
Custom HTML sections can be reordered and deleted exactly like any other Shorthand section, with no undo option, and for this reason we suggest you do your authoring in your usual editor and copy/paste into the section.