Revision 34400 of <msqrt>

  • Revision slug: MathML/Element/msqrt
  • Revision title: msqrt
  • Revision id: 34400
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment 68 words added, 31 words removed

Revision Content

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 {{ unimplemented_inline("534968") }}
Used to set a hyperlink to a specified URI.
mathbackground {{ gecko_minversion_inline("2.0") }}
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor {{ gecko_minversion_inline("2.0") }}
The text color and also the color of the root symbol itself. You can use #rgb, #rrggbb and HTML color names.

Examples

<math>

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

</math>

Browser compatibility

Browser Lowest version
Internet Explorer ---
Firefox (Gecko) 1.0 (1.0)
Opera (Presto) 9.5 (2.1)
Safari | Chrome | WebKit Nightly build

Specification

  • {{ spec("http://www.w3.org/TR/MathML/chapter3.html#presm.mroot","MathML 3.0 Presentation Markup msqrt", "REC") }}

See also

  • {{ MathMLElement("mroot") }} (Radical with an index)

Revision Source

<p>The MathML <code>&lt;msqrt&gt;</code> element is used to display square roots (no index is displayed). The square root accepts only one argument, which leads to the following syntax: <code>&lt;msqrt&gt; <em>base</em> &lt;/msqrt&gt;</code>.</p>
<h2>Attributes</h2>
<dl> <dt id="attr-class-id-style">class, id, style</dt> <dd>Provided for use with <a href="/en/CSS" title="en/CSS/">stylesheets</a>.</dd> <dt id="attr-href">href {{ unimplemented_inline("534968") }}</dt> <dd>Used to set a hyperlink to a specified URI.</dd> <dt id="attr-mathbackground">mathbackground {{ gecko_minversion_inline("2.0") }}</dt> <dd>The background color. You can use <code>#rgb</code>, <code>#rrggbb</code> and <a href="/en/CSS/color_value#HTML.2fSVG.2fX11.c2.a0_Color_Keywords" title="en/CSS/color value#HTML.2fSVG.2fX11.c2.a0 Color Keywords">HTML color names</a>.</dd> <dt id="attr-mathcolor">mathcolor {{ gecko_minversion_inline("2.0") }}</dt> <dd>The text color and also the color of the root symbol itself. You can use <code>#rgb</code>, <code>#rrggbb</code> and <a href="/en/CSS/color_value#HTML.2fSVG.2fX11.c2.a0_Color_Keywords" title="en/CSS/color value#HTML.2fSVG.2fX11.c2.a0 Color Keywords">HTML color names</a>.</dd>
</dl>
<h2>Examples</h2>
<pre class="brush: html">&lt;math&gt;

 &lt;<span class="start-tag">msqrt</span>&gt;
    &lt;<span class="start-tag">mi</span>&gt;<span class="text">x</span>&lt;/<span class="end-tag">mi</span>&gt;
  &lt;/<span class="end-tag">msqrt</span>&gt; 

&lt;/math&gt;
</pre>
<h2>Browser compatibility</h2>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest version</th> </tr> <tr> <td>Internet Explorer</td> <td>---</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>1.0 (1.0)</td> </tr> <tr> <td>Opera (Presto)</td> <td>9.5 (2.1)</td> </tr> <tr> <td>Safari | Chrome | WebKit</td> <td><em>Nightly build</em></td> </tr> </tbody>
</table>
<h2>Specification</h2>
<ul> <li>{{ spec("http://www.w3.org/TR/MathML/chapter3.html#presm.mroot","MathML 3.0 Presentation Markup msqrt", "REC") }}</li>
</ul>
<h2>See also</h2>
<ul> <li>{{ MathMLElement("mroot") }} (Radical with an index)</li>
</ul>
Revert to this revision