<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.

Das <msub> MathML Element wird verwendet, um einen Index an einen Ausdruck anzuhängen.

Es verwendet die folgende Syntax: <msub> base subscript </msub>.

Attribute

Die Attribute dieses Elements umfassen die globalen MathML-Attribute sowie das folgende veraltete Attribut:

subscriptshift Veraltet Nicht standardisiert

Eine <length-percentage>, die die minimale Verschiebung der Grundlinie des Index nach unten angibt.

Hinweis: Für das subscriptshift Attribut akzeptieren einige Browser möglicherweise auch veraltete MathML-Längen.

Beispiele

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

Technische Zusammenfassung

Spezifikationen

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

Browser-Kompatibilität

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.

Siehe auch