Favorites

ARIA generic Role

generic
ARIA Document Structure RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

Category
Document Structure
HTML equivalent
<div>, <span>, <b>, <i>, <u>, <s>, <small>, <bdi>, <bdo>, <data>, <header>, <footer>, <section>
Accessible name from
prohibited
Required parent role
None
Required child roles
None

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

<div class="card">
<span class="price">$25</span>
</div>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee