ARIA subscript Role
The subscript role marks text that is set lower than the surrounding text, such as the 2 in H2O. The sub element has this role.
Description
The subscript role identifies one or more characters that are set slightly below the normal line of text, for typographical reasons such as chemical formulas (H2O) or mathematical variables. The <sub> element has this role natively. Like other text-level roles, it can't be given an accessible name, and many screen readers don't announce it by default unless the user turns on formatting announcements.
Don't use it just to lower text for styling; use the CSS vertical-align property instead. For complex formulas, use MathML.
Use the native HTML <sub> element where you can: it already has the subscript role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Document Structure
- HTML equivalent
<sub>- 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="subscript">
Example
Browser Support
The following information will show you the current browser support for the subscript ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





