In the world of web accessibility, it’s the little things that make a big difference. And when it comes to ARIA, one of the most important little things is to make sure that your ARIA roles are contained by their required parent. ARIA (Accessible Rich Internet Applications) attributes are a set of attributes that can be added to HTML elements to make them more accessible to people with disabilities. They are often used to provide additional information about the role, state, and properties of an element. This guide will explore the importance of making sure that your ARIA roles are contained by their required parent and how to fix it.
Think of your website as a family tree. Each person in the family tree has a specific role, and they are all connected to each other in a specific way. The same is true for your website. By making sure that your ARIA roles are contained by their required parent, you can create a more accessible and user-friendly experience for everyone. For a deeper dive into the world of accessibility, see our article on accessibility.

Your Guide to a More Accessible and User-Friendly Website
Fixing ARIA roles that are not contained by their required parent is a simple but important task. Here’s how to do it:
- Identify Your Elements with ARIA Roles That Are Not Contained by Their Required Parent: Use an accessibility testing tool like Creeper to crawl your site and identify any elements with ARIA roles that are not contained by their required parent.
- Move the Element to the Correct Parent: The ARIA specification defines which parent is required for each role. You can also use an accessibility testing tool like Creeper to identify any elements that are not contained by their required parent.
The SEO Power of an Accessible Website
An accessible website is a more successful website. By making your website more accessible, you can improve your user experience, reach a wider audience, and even improve your SEO. For more on the importance of a well-structured website, check out this guide to ARIA roles from MDN.
Don’t let your website be a confusing and frustrating experience for your users. By taking the time to make sure that your ARIA roles are contained by their required parent, you can build a more accessible and successful online presence. For more on how to create a winning on-page strategy, see our article on on-page SEO.

Frequently Asked Questions
What is an ARIA role?
An ARIA role is an attribute that can be added to an HTML element to define its purpose. For example, you can use the ‘role=”button”‘ attribute to indicate that an element is a button.
Why is it important for ARIA roles to be contained by their required parent?
It’s important for ARIA roles to be contained by their required parent so that screen readers can announce the correct information to the user. This is crucial for users who are blind or have low vision.
How do I know which parent is required for each ARIA role?
The ARIA specification defines which parent is required for each role. You can also use an accessibility testing tool like Creeper to identify any elements that are not contained by their required parent.
Ready to keep your ARIA roles in the family? Start your Creeper audit today and see how you can improve your website’s accessibility.