| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/MathML/Reference/Element/mrow | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since January 2023.
The <mrow> MathML element is used to group sub-expressions, which usually contain one or more operators with their respective operands (such as <mi> and <mn>). This element renders as a horizontal row containing its arguments.
When writing a MathML expression, you should group elements within an <mrow> in the same way as they are grouped in the mathematical interpretation of the expression. Proper grouping helps the rendering of the expression in several ways:
This element accepts the global MathML attributes.
<math display="block">
<mfrac>
<mrow>
<!-- numerator content grouped in one mrow -->
<mn>1</mn>
<mo>+</mo>
<mi>K</mi>
</mrow>
<mrow>
<!-- denominator content grouped in one mrow -->
<mn>3</mn>
<mrow>
<!-- fenced expression grouped in one mrow -->
<mo>(</mo>
<mrow>
<!-- fenced content grouped in one mrow -->
<mi>x</mi>
<mo>+</mo>
<mi>y</mi>
</mrow>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
</math>
| Implicit ARIA role | None |
|---|
| Specification |
|---|
| MathML Core # horizontally-group-sub-expressions-mrow |
<div>This page was last modified on Mar 13, 2025 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |