docs.rodeo

MDN Web Docs mirror

{{MathMLRef}} 

The <msub> MathML element is used to attach a subscript to an expression.

It uses the following syntax: <msub> base subscript </msub>.

Attributes

This element’s attributes include the global MathML attributes as well as the following deprecated attribute:

[!NOTE] For the subscriptshift attribute, some browsers may also accept legacy MathML lengths.

Examples

<math display="block">
  <msub>
    <mi>X</mi>
    <mn>1</mn>
  </msub>
</math>

{{EmbedLiveSample('Examples')}} 

Technical summary

Implicit ARIA role None

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN