Choosing Semantic HTML Presets in Divi 5

By Interactive OnlinePublished Updated Editorial draft

Quick Answer

Divi 5 can save an element’s HTML wrapper choice in a preset. Use that to repeat a known content role, such as supplementary content, while choosing the role for each context. A universal default of main, article or aside is usually unsuitable for generic columns. Inspect the complete rendered page before applying a semantic preset broadly.

A column describes a position in the builder. Its HTML element describes the content’s purpose. The same visual column can hold the primary article on one page and a supporting note on another.

Choose the content role before choosing a preset

W3C’s page-region guidance explains how semantic regions help browsers and assistive technologies identify page structure. Those roles should match the content, including the site’s existing template regions.

Review the shared header, main content area and footer first. An added wrapper can create unnecessary or conflicting structure if the theme already supplies the intended region. A visual page-builder section is not automatically a meaningful section of the document.

For example, a related reading panel beside an article may be supplementary content. Another panel in the same column position may contain essential instructions that belong within the main flow. Position alone cannot choose the tag.

Save a wrapper choice deliberately

Elegant Themes’ semantic preset tutorial documents Element Type within the Advanced HTML settings. It describes saving that setting in an element preset or an HTML option-group preset.

An HTML option-group preset can keep a wrapper choice separate from a column’s visual styling. Give it a name that identifies the purpose. Apply it where that role fits instead of assigning it as the default for every new column.

  1. Inspect the destination page’s existing structure and decide the intended content role.
  2. Open the relevant element’s HTML settings, or create an HTML group preset in the Preset Manager.
  3. Select the appropriate Element Type and save a clearly named preset.
  4. Apply it to the intended component and inspect the rendered result.

Confirm the controls in the installed Divi version. A publisher tutorial demonstrates its own build; its sample page and design are not an Interactive Online template or client result.

Why should generic defaults remain neutral?

A default travels into contexts the original author may not have anticipated. Making every column an aside could mislabel essential content. Making every column main could repeat a role that belongs to the page’s primary content region.

Reserve a purpose-specific preset for a purpose-specific component. Keep ordinary layout containers neutral when they add no document meaning. The companion guide to section, aside and main explains how to make that choice.

Review markup as well as appearance

Preview a representative page using the preset. Inspect the document structure, headings and region names, then check keyboard navigation and a suitable assistive-technology view. A preset preview on a sample element cannot establish the structure of the finished page.

Review other pages using a shared preset before changing it. Keep a record of why the role was chosen and which component should use it. For a broader evaluation, our accessibility service can help define the review scope; choosing tags alone does not establish conformance.

Key Takeaways

  • Choose HTML semantics according to content purpose.
  • A preset can repeat a correct decision or spread an incorrect one.
  • Keep semantic wrapper presets separate from visual styles when useful.
  • Check the full page, including regions supplied by shared templates.

Frequently Asked Questions

Should every Divi section use the section HTML element?

No. Builder layout labels do not establish document meaning. Use a semantic section for a meaningful grouping and a neutral wrapper for layout alone.

Can one column style be used with different HTML roles?

Yes, visual styling and wrapper purpose can be separated. The documented HTML option-group preset provides a way to reuse the semantic setting where appropriate.

Will semantic presets guarantee better rankings or accessibility?

No. Correct markup supports understandable structure, but the full content, interactions and implementation need review. It does not establish a ranking or conformance outcome.

Before adding shared presets to an established site, include its templates in a website audit so new wrappers fit the structure already present.

Archives