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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome No support NoEdge ? Firefox Full support 1IE No support NoOpera No support NoSafari Full support 6WebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
hrefChrome No support NoEdge ? Firefox Full support 7IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 7Opera Android No support NoSafari iOS No support NoSamsung Internet Android ?
mathbackgroundChrome No support NoEdge ? Firefox Full support 4IE No support NoOpera No support NoSafari Full support YesWebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 4Opera Android No support NoSafari iOS Full support 6Samsung Internet Android ?
mathcolorChrome No support NoEdge ? Firefox Full support 4IE No support NoOpera No support NoSafari Full support YesWebView Android No support NoChrome Android No support NoEdge Mobile ? Firefox Android Full support 4Opera Android No support NoSafari iOS Full support 6Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

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,