<annotation>
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since Januar 2023.
Das <annotation> MathML-Element enthält eine Annotation zur MathML-Ausdruck in einem textuellen Format, zum Beispiel LaTeX.
Hinweis:
Annotationen sollen von Browsern nicht gerendert werden und sind standardmäßig versteckt. Firefox und Safari rendern jedoch 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 Information in der Annotation (z.B.
"application/x-tex") srcVeraltet- 
Der Ort einer externen Quelle für semantische Informationen.
 
Beispiel
<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
| Implizite ARIA-Rolle | Keine | 
|---|
Spezifikationen
| Specification | 
|---|
| MathML Core> # semantics-and-presentation>  | 
            
Browser-Kompatibilität
Loading…