--- title: slug: Web/MathML/Element/mrow tags: - MathML - Referenz translation_of: Web/MathML/Element/mrow ---
{{MathMLRef}}

Das Element <mrow> wird genutzt, um Ausdrücke (mathematische Terme) zu gruppieren. Ausdrücke enthalten in der Regel einen oder mehrere Rechenzeichen oder Operatoren (engl. operator, siehe <mo>) und die dazugehörigen Zahlenwerte (engl. number, siehe <mn>) und Variablen (engl. identifier, siehe <mi>). Der Inhalt von <mrow> wird in einer Zeile dargestellt.

Beim Schreiben von MathML-Ausdrücken solltest Du die Bestandteile des Terms so in <mrow>-Elementen zusammenfassen, wie es der mathematischen Aussage entspricht. Passende Gruppierung erleichtert die Darstellung auf mehrere Weisen:

Attribute

class, id, style
Zur Einbindung von CSS-Stylesheets und zur direkten Anwendung von CSS-Angaben.
dir
Allgemeine Schreibrichtung für die Formeln. Mögliche Werte sind ltr (left to right, von links nach rechts) und rtl (right to left, von rechts nach links).
href
Mit diesem Attribut kann ein Link gesetzt werden.
mathbackground
Die Hintergrundfarbe. Folgende Notationen sind erlaubt: #rgb, #rrggbb und HTML-Farbnamen.
mathcolor
Die Textfarbe. Folgende Notationen sind erlaubt: #rgb, #rrggbb und HTML-Farbnamen.

Beispiele

<math>

  <mrow>
    <mn>1</mn>
    <mo>+</mo>
    <mn>1</mn>
  </mrow>

  <mrow>
    <mo>(</mo>
    <mrow>
      <mi>x</mi>
      <mo>,</mo>
      <mi>y</mi>
    </mrow>
    <mo>)</mo>
  </mrow>

</math>

Spezifikationen

Standard Status Bemerkung
{{ SpecName('MathML3', 'chapter3.html#presm.mrow', 'mrow') }} {{ Spec2('MathML3') }} Current specification
{{ SpecName('MathML2', 'chapter3.html#presm.mrow', 'mrow') }} {{ Spec2('MathML2') }} Initial specification

Browserkompatibilität

{{CompatibilityTable}}

Merkmal Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatNo}} {{ CompatGeckoDesktop("1.0") }} {{CompatNo}} {{CompatNo}} 5.1
dir {{CompatNo}} {{ CompatGeckoDesktop("12.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
href {{CompatNo}} {{ CompatGeckoDesktop("7.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
mathbackground {{CompatNo}} {{ CompatGeckoDesktop("2.0") }} {{CompatNo}} {{CompatNo}} 5.1
mathcolor {{CompatNo}} {{ CompatGeckoDesktop("2.0") }} {{CompatNo}} {{CompatNo}} 5.1
Merkmal Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatNo}} {{ CompatGeckoMobile("1.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
dir {{CompatNo}} {{CompatNo}} {{ CompatGeckoMobile("12.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
href {{CompatNo}} {{CompatNo}} {{ CompatGeckoMobile("7.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
mathbackground {{CompatNo}} {{CompatNo}} {{ CompatGeckoMobile("2.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}
mathcolor {{CompatNo}} {{CompatNo}} {{ CompatGeckoMobile("2.0") }} {{CompatNo}} {{CompatNo}} {{CompatNo}}

Siehe auch