Favorites

ARIA subscript Role

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

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.

☕
Enjoying this site?

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

Buy us a coffee

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

<p>Water is H<sub>2</sub>O.</p>

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.

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