In an generation the place WCAG compliance, semantic HTML, and AI-assisted seek stories topic, fashionable web page developers are evolving to make accessibility and significant construction same old relatively than an afterthought. Divi 5 is a part of that shift, making it simpler for Divi customers to construct websites with clearer construction and more potent accessibility.
Divi 5 contains Semantic Elements, which let customers alternate a module’s underlying HTML tag to local semantic tags corresponding to nav, header, article, or button. Any other fresh characteristic, Custom Attributes, shall we customers upload HTML attributes, together with ARIA roles and states, within the Complicated tab. Whilst Semantic Parts supply integrated which means via right kind HTML tags, Customized Attributes supply additive semantics and finer keep an eye on when a local tag on my own isn’t sufficient.
On this put up, I’ll evaluate the 2 approaches head-to-head, give an explanation for when to prioritize one over the opposite, and display how they paintings in combination in Divi 5 to support accessibility, readability, and long-term maintainability.
Let’s dive in.
What Are Semantic Parts?
Semantic Elements are one of the vital accessibility upgrades in Divi 5. At their core, they permit you to substitute default wrapper tags with local semantic HTML tags corresponding to nav, header, phase, article, major, footer, and button, each and every of which carries integrated which means concerning the content material’s objective and construction.

In contrast to generic div wrappers, those tags assist browsers, display screen readers, and engines like google perceive what the detail is for. A nav tag obviously alerts navigation, a button identifies an interactive keep an eye on, and structural tags like header, major, or article assist outline the web page’s logical hierarchy with out additional function attributes.
Key Advantages of Semantic Parts
- Robust Accessibility: Display readers can acknowledge landmarks corresponding to navigation and major content material robotically, making pages simpler to navigate for other folks the use of assistive applied sciences.
- Clearer Construction For Seek Engines: Serps can parse semantic HTML extra correctly, working out content material hierarchy, obstacles, and objective extra obviously.
- Cleaner HTML Output: You get significant construction with out depending on additional ARIA roles or customized code, leading to more effective, extra maintainable markup.
How It Works In Divi 5
The Semantic Parts characteristic lives within the Complicated tab beneath the HTML possibility team. There, you’ll in finding an Component Kind dropdown that permits you to choose from a listing of semantic tags.

This selection applies to modules and boxes, supplying you with numerous flexibility. You’ll be able to alternate a customized menu wrapper to nav so assistive applied sciences acknowledge it as navigation. You’ll be able to convert an Icon module performing as a detailed or toggle keep an eye on right into a right kind button detail. You’ll be able to additionally team content material into semantic wrappers like header, major, or article, which is particularly helpful for one-page layouts constructed at once within the Visible Builder.

Sensible Examples
You’ll be able to construct a semantic one-page format via wrapping your hero house in a header tag, number one content material in a major or article tag, and shutting sections in a footer tag. This creates transparent web page areas for each assistive generation and crawlers.

You’ll be able to additionally create icon-only controls via converting an Icon module from a generic detail to an actual button. That provides it local button semantics, and you’ll pair it with ARIA later if you wish to have an out there identify or state.

In the end, you’ll create customized navigation via assembling a menu with Divi modules and making use of the nav tag to the container. This offers the area landmark standing instantly.

Strengths And Obstacles
Semantic Parts are perfect for structural and interactive points the place a local HTML tag already exists. They’re simple to enforce, low-risk, and carefully aligned with internet requirements.
That mentioned, they’re restricted to the tags to be had within the dropdown. Additionally they don’t duvet each and every accessibility want on their very own. For instance, a semantic tag received’t upload a state like aria-expanded to a toggle button or label a conversation robotically. For circumstances like that, Customized Attributes and ARIA fill the gaps.
Semantic Parts give your Divi web page a robust, significant basis within the HTML layer, making accessibility and blank code a lot simpler to succeed in.
What Are Position Attributes?
Whilst Semantic Parts give your Divi modules local HTML tags with integrated which means, now not each and every scenario suits well into the ones predefined tags. That’s the place function attributes are available in. A function characteristic explicitly describes a component’s objective to assistive applied sciences when the underlying HTML tag doesn’t supply sufficient which means or when you wish to have further semantic context.
Those are added via Divi 5’s Custom Attributes device. This option lives within the Complicated tab beneath the Attributes possibility team and allows you to upload attributes at once within the builder.

Customized Attributes permit you to upload legitimate HTML attributes corresponding to data-* for customized scripting, tabindex for focal point control, rel for hyperlink habits, and ARIA attributes corresponding to function, aria-label, and aria-expanded. This makes the characteristic helpful for fine-tuning semantics, particularly on sub-elements or dynamic elements.
Key Advantages of Position Attributes
- Extra Flexibility: You’ll be able to goal all of the module or explicit sub-elements, corresponding to an icon in a Blurb module, checklist pieces in an Icon Checklist, or looped points within the Loop Builder.
- Useful For Accessibility Gaps: You’ll be able to upload semantics to generic wrappers, describe dynamic elements, or support accessibility with out converting the bottom tag.
- Helpful When Tag Adjustments Aren’t Superb: They assist when the Component Kind dropdown doesn’t be offering the proper semantic tag, or when you wish to have states and labels that local tags on my own don’t supply.
How Position Attributes Paintings In Divi 5
Including an characteristic is easy. On this instance, we’ll assign a job to a detailed Icon module on a pop-up. An Interplay is already set, however we additionally need assistive applied sciences to remember the fact that the Icon module behaves like a keep an eye on.
Merely open any module’s settings and cross to the Complicated tab. Increase the Attributes menu, then click on + Upload Characteristic.

Make a selection function because the Characteristic.

Assign an Admin Label for simple id, and set the Characteristic Worth to button.

Including function=”button” tells assistive applied sciences that the detail must be handled as a keep an eye on relatively than as an ornamental graphic. Alternatively, function on my own does now not make a generic detail behave like a local button. If the detail isn’t already keyboard-focusable and operable, you’ll additionally want the proper interplay dealing with and, in some circumstances, tabindex and keyboard enhance. When conceivable, the use of an actual button detail via Semantic Parts remains to be the simpler possibility.
Sensible Examples
Along with the use of a job characteristic on an Icon module to enhance a pop-up shut keep an eye on, there are different circumstances the place a job characteristic is sensible.
Customized Menus Constructed With out The usage of The Menu Module
For instance, if you happen to’re assembling a navigation bar the use of Textual content modules, you have to upload function=”navigation” to the dad or mum Row.

This can also be helpful whilst you don’t wish to alternate the container itself to nav or when the construction round it wishes to stick as-is. That mentioned, a local nav detail remains to be preferable every time it’s sensible.
Modal Or Popup Bins
Any other instance is a modal or pop-up container. A full-screen overlay, pop-up, or conversation field brought about via Interactions is ceaselessly constructed with generic Phase and Row buildings.

Via including function=”conversation” to the phase, you inform assistive applied sciences that the area is a conversation. To make it extra out there, pair it with a label corresponding to aria-label=”E-newsletter Signup” or aria-labelledby. In an absolutely out there modal development, you must additionally set up focal point appropriately and point out modality the place suitable.

Defining Checklist Intent
You’ll be able to additionally use function attributes at the Icon Checklist module to elucidate its objective in positive edge circumstances. Divi 5 usually outputs this module with local checklist semantics, which is the best setup.
![]()
In some eventualities, customized styling can impact how lists are uncovered to assistive applied sciences. Including function=”checklist” can act as a fallback when local checklist semantics are weakened or now not conveyed as anticipated. It shouldn’t substitute right kind checklist markup, however it could actually assist improve intent when wanted.
Semantic Parts vs Position Attributes
Each Semantic Parts and function attributes are helpful equipment in Divi 5 for developing extra out there, comprehensible web sites. They percentage the similar huge purpose: making improvements to how browsers, display screen readers, and different equipment interpret your web page construction and content material. Divi 5 makes each options simple to make use of at once within the Visible Builder.
Similarities
Semantic Parts and function attributes each support accessibility and semantic which means. They are able to assist display screen readers announce content material extra correctly, outline landmarks that allow customers soar briefly to key web page areas, and explain the aim of interactive points.
Each approaches additionally align with fashionable internet requirements. Used appropriately, they enhance higher accessibility practices and provide help to construct websites with clearer construction and extra maintainable markup.
Variations
The important thing difference lies in how each and every means delivers which means: local and integrated as opposed to descriptive and additive.
Local vs Additive
Semantic Parts use right kind HTML tags that browsers and assistive applied sciences perceive natively. The which means is constructed into the tag itself. Position attributes, in contrast, upload semantic which means to an current detail with out converting its underlying tag. That makes them helpful when local tags aren’t to be had, aren’t sensible, or want further context.
Personal tastes And Very best Practices
Internet requirements counsel the use of local semantic points first every time conceivable. A local tag typically supplies more potent and extra dependable semantics than an ARIA function added to a generic detail. For instance, converting a module to nav is preferable to including function=”navigation” to a div. Fall again to function attributes when:
- The Component Kind dropdown doesn’t be offering the semantic tag you wish to have.
- Converting the tag would destroy the format, styling, or capability.
- You wish to have to explain dynamic or composite habits, corresponding to function=”conversation” for a modal.
- You’re focused on a sub-element, corresponding to an icon inside of a Blurb module.
Affect On search engine marketing And Maintainability
Semantic Parts typically produce cleaner HTML, which may make web page construction simpler for engines like google and builders to know. Position attributes are essentially accessibility-focused. They don’t substitute local construction, however they may be able to support usability when used in moderation. From a repairs standpoint, local semantic tags are typically simpler to reason why about than a layer of added ARIA.
That can assist you higher perceive the variations, confer with the desk underneath:
| Semantic Parts | Position Attributes | |
|---|---|---|
| Implementation | Exchange Component Kind in HTML possibility team | Upload by way of the Attributes panel |
| Form of Semantics | Local/Inherit (constructed into HTML5) | Additive/ARIA-described |
| Very best For | Structural/web page landmarks, static points | Dynamic content material, sub-elements, gaps |
| Accessibility Power | Very good (automated landmark popularity) | Very good when used appropriately, however calls for care |
| search engine marketing Affect | Robust (cleaner, semantic HTML) | Oblique (accessibility is helping not directly) |
| Flexibility | Restricted to supported HTML tags | Limitless (any legitimate characteristic/function) |
| Possibility of misuse | Low (exhausting to overdo) | Upper (redundancy, conflicts conceivable) |
| Divi 5 Concentrated on | Entire module/detail | Module + sub-elements, like an icon or name |
| Instance Situation | Menu as a nav tag | Ornamental icon as aria-hidden or function=”button” on non-button points |
Very best Practices
To get essentially the most out of Semantic Parts and Customized Attributes in Divi 5, apply those perfect practices:
Use Semantic Parts First
In accessibility paintings, this aligns with the First Rule of ARIA: if you’ll use a local HTML detail or characteristic that already supplies the semantics and behaviour you wish to have, use that as a substitute of repurposing a component and including ARIA. Local HTML offers the most powerful, maximum dependable semantics for the reason that which means is constructed at once into the language.
Use ARIA Roles When Vital
ARIA roles and attributes must be used solely when vital: when the Component Kind dropdown doesn’t be offering the proper tag, when converting the tag would destroy your design or capability, or when you wish to have to explain dynamic states that local tags can’t care for on my own. Following this hierarchy is helping keep away from commonplace accessibility errors corresponding to redundant roles, complicated bulletins, or incomplete interactive patterns.
Stay Position Attributes Minimum
Steer clear of including roles to points that have already got similar local semantics. For instance, including function=”navigation” to a nav tag is senseless and would possibly cause warnings from accessibility checking out equipment.
Check Frequently
Check with an actual display screen reader to listen to how your web page is introduced in observe. It’s additionally useful to run computerized accessibility checking out and check out the rendered markup. In case you use Divi add-ons, equipment corresponding to Accessibility Bundle might also assist visualize construction all through building.
Stay Efficiency And Maintainability In Thoughts
From a code high quality perspective, leaning on Semantic Parts has a tendency to provide lighter, easier-to-maintain markup with fewer additional attributes. Customized Attributes upload solely what you specify, however overusing ARIA, including conflicting roles, or stacking useless attributes could make markup more difficult to know and preserve. Purpose for the cleanest conceivable construction: use local tags for the basis, then upload roles or ARIA solely the place authentic gaps exist.
Semantic Parts And Position Attributes: Higher In combination
In Divi 5, Semantic Parts and function attributes be offering two complementary paths to more potent, extra out there internet design.
Semantic Elements supply inherent construction via letting you assign local HTML tags at once to modules. This creates cleaner, self-explanatory markup that browsers, display screen readers, and engines like google perceive robotically, making it the most popular basis for structural and static content material.
Position attributes, added throughout the Custom Attributes possibility team, supply versatile, additive improvements. When local tags aren’t to be had, aren’t appropriate, or can’t absolutely describe dynamic habits, roles assist fill the ones gaps with out converting the underlying tag.
Take a look at each options on an current Divi 5 web page and use them deliberately. Get started with local semantic tags the place conceivable, then upload function and ARIA attributes solely the place they truly support which means, labeling, or habits. That means results in cleaner code, higher accessibility, and a extra resilient web page construction.
The put up Divi 5: Semantic Elements vs Role Attributes gave the impression first on Elegant Themes Blog.






0 Comments