Favorites

ARIA math Role

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

The math role marks content that represents a mathematical expression. The MathML math element has this role and is the best way to mark up formulas.

☕
Enjoying this site?

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

Buy us a coffee

Description

The math role identifies content that represents a mathematical expression. The MathML <math> element has this role and is supported in all modern browsers, so screen readers can read formulas and let users explore them piece by piece.

If an expression is shown as an image or built from other markup, add role="math" with an aria-label giving a readable version of the formula. Using MathML is much better, since users can navigate its structure.

Use the native HTML <math> element where you can: it already has the math role, with the expected keyboard and browser behavior built in.

Properties

Category
Document Structure
HTML equivalent
<math>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Required
None
Supported
None
Prohibited
None
Global
All global ARIA attributes can also be used, such as aria-label, aria-labelledby, aria-describedby, aria-hidden.

Syntax

<element role="math">

Example

<math>
<mi>x</mi><mo>=</mo>
<mfrac><mn>1</mn><mn>2</mn></mfrac>
</math>

<span role="math" aria-label="a squared plus b squared equals c squared">a&sup2; + b&sup2; = c&sup2;</span>

Browser Support

The following information will show you the current browser support for the math 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