<msub>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

L'élément MathML <msub> est utilisé pour attaché un indice à une expression. On utilise la syntaxe suivante: <msub> base indice </msub>.

Attributes

class, id, style

Fournit pour être utilisé avec stylesheets.

href

Utilisé pour ajouter un hyperlien vers une URI.

mathbackground

La couleur d'arrière plan. Vous pouvez utiliser #rgb, #rrggbb et les noms de couleurs HTML.

mathcolor

La couleur du texte. Vous pouvez utiliser #rgb, #rrggbb et les noms de couleurs HTML.

subscriptshift

The minimum space by which to shift the subscript below the baseline of the expression, as a length value.

Example

Image fixe: x1

Rendu dans votre navigateur: X 1

html
<math>
  <msub>
    <mi>X</mi>
    <mn>1</mn>
  </msub>
</math>

Spécifications

Specification
MathML Core
# subscripts-and-superscripts-msub-msup-msubsup

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
msub
subscriptshift
DeprecatedNon-standard

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.

Voir aussi