<annotation>

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 <annotation> MathML Element enthält eine Annotation zur MathML-Ausdruck in einem textuellen Format, zum Beispiel LaTeX.

Hinweis: Annotationen sollen nicht von Browsern dargestellt werden und sind standardmäßig versteckt. Allerdings rendern Firefox und Safari einige Annotationsformate, wenn das erste Kind des <semantics> Elements Fehler enthält oder fehlt.

Attribute

Die Attribute dieses Elements umfassen die globalen MathML-Attribute sowie die folgenden Attribute:

encoding

Die Kodierung der semantischen Informationen in der Annotation (z.B. "application/x-tex")

src Veraltet

Der Ort einer externen Quelle für semantische Informationen.

Beispiel

html
<math display="block">
  <semantics>
    <!-- The first child is the MathML expression rendered by default. -->
    <mrow>
      <msup>
        <mi>x</mi>
        <mn>2</mn>
      </msup>
      <mo>+</mo>
      <mi>y</mi>
    </mrow>

    <!-- Annotate with LaTeX, a lightweight markup language. -->
    <annotation encoding="application/x-tex">x^{2} + y</annotation>
  </semantics>
</math>

Technische Zusammenfassung

Spezifikationen

Specification
MathML Core
# semantics-and-presentation

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
annotation

Legend

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

Full support
Full support
No support
No support