We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The MathML <mrow> 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:

  • It can improve the display by possibly affecting spacing.
  • It allows for more intelligent line-breaking and indentation.
  • It simplifies the interpretation of the expression by automated systems such as computer algebra systems and audio renderers.


class, id, style
Provided for use with stylesheets.
Overall directionality of formulas. Possible values are either ltr (left to right) or rtl (right to left).
Used to set a hyperlink to a specified URI.
The background color. You can use #rgb, #rrggbb and HTML color names.
The text color. You can use #rgb, #rrggbb and HTML color names.



    <mn> 1 </mn>
    <mo> + </mo>
    <mn> 1 </mn>
    <mo> ( </mo>
      <mi> x </mi>
      <mo> , </mo>
      <mi> y </mi>
    <mo> ) </mo>



Specification Status Comment
MathML 3.0
The definition of 'mrow' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mrow' in that specification.
Recommendation Initial specification

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ?1 No No6
dir No ?12 No No No
href No ?7 No No10
mathbackground No ?4 No No Yes
mathcolor No ?4 No No Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No ?4 No No ?
dir No No ?14 No No ?
href No No ?7 No No ?
mathbackground No No ?4 No6 ?
mathcolor No No ?4 No6 ?

See also

  • Grouping HTML elements: <div>


このページの貢献者: fscholz, Yaffle, Sheppy, fred.wang, jswisher
最終更新者: fscholz,