| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/MathML/Reference/Element/msub | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since January 2023.
* Some parts of this feature may have varying levels of support.
The <msub> MathML element is used to attach a subscript to an expression.
It uses the following syntax: <msub> base subscript </msub>.
This element's attributes include the global MathML attributes as well as the following deprecated attribute:
subscriptshift A <length-percentage> indicating the minimum amount to shift the baseline of the subscript down.
Note:
For the subscriptshift attribute, some browsers may also accept legacy MathML lengths.
<math display="block">
<msub>
<mi>X</mi>
<mn>1</mn>
</msub>
</math>
| Implicit ARIA role | None |
|---|
| Specification |
|---|
| MathML Core # subscripts-and-superscripts-msub-msup-msubsup |
<msup> (Superscript)<msubsup> (Subscript-superscript pair)<mmultiscripts> (Prescripts and tensor indices)This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |