The MathML <mroot> element is used to display roots with an explicit index. Two arguments are accepted, which leads to the syntax: <mroot> base index </mroot>.

Attributes

class, id, style
Provided for use with stylesheets.
href
Used to set a hyperlink to a specified URL.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor
The text color and also the color of the root symbol itself. You can use #rgb, #rrggbb and HTML color names.

Examples

Sample Rendering: x

Rendering in your browser: x 3

<math>

 <mroot>
    <mi>x</mi>
    <mn>3</mn>
 </mroot> 
 
</math>

Specifications

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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No ?1 No No6
href No ?7 No No No
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 ?
href No No ?7 No No ?
mathbackground No No ?4 No6 ?
mathcolor No No ?4 No6 ?

See also

  • <msqrt> (Square root without an index)

Document Tags and Contributors

Contributors to this page: fscholz, jumpball, fred.wang, Sheppy, jswisher
Last updated by: fscholz,