The MathML <msqrt> element is used to display square roots (no index is displayed). The square root accepts only one argument, which leads to the following syntax: <msqrt> base </msqrt>.

Attributes

class, id, style
Provided for use with stylesheets.
href
Used to set a hyperlink to a specified URI.
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: root-x

Rendering in your browser: x

<math>

 <msqrt>
    <mi>x</mi>
  </msqrt> 

</math>

Specifications

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

Browser compatibility

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

See also

Document Tags and Contributors

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