The section tag groups related content on your webpage, similar to how a bookshelf organizes books by category.

Sections offer the flexibility to add space between content areas, set unique backgrounds, and control typography within the section, affecting all contained elements except those with direct styling, like heading tags.

Understanding sections and hierarchy

A clear hierarchy is crucial. A section should generally come first, followed by a container which then holds various elements like text, images, and more.

Layers panel showing a section first, a container inside the section and content inside the container

Creating a new section

To add a new section, select the body tag, look for the section option in the dropdown, and click to add it to your layout.

Adding a Section tag to the Body from the tag dropdown in the Divhunt Designer

When to use a section

Use a section when you have a distinct block of content with its own theme, ensuring it stands out as a separate part of your webpage’s narrative.

Page wireframe split into header, about us and services sections