ARIA generic Role
The generic role marks a container with no meaning of its own, used only for styling or scripting. The div and span elements have this role.
Description
The generic role identifies a nameless container element with no semantic meaning of its own. It is the role that <div>, <span> and many other elements, such as <b>, <i> and unnamed <section> elements, have by default. Assistive technology mostly ignores the container itself and just reads its contents.
Unlike none, a generic element stays in the accessibility tree and can take global ARIA attributes such as aria-live. It can't be given an accessible name, so aria-label on a plain <div> or <span> is not valid. You don't normally write role="generic"; it exists so browsers and the spec can describe these elements.
Use the native HTML <div>, <span>, <b>, <i>, <u>, <s>, <small>, <bdi>, <bdo>, <data>, <header>, <footer>, <section> element where you can: it already has the generic role, with the expected keyboard and browser behavior built in.
Properties
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
aria-label,aria-labelledby- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="generic">
Example
Browser Support
The following information will show you the current browser support for the generic ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





