mozilla

Revision 34359 of <msubsup>

  • Revision slug: MathML/Element/msubsup
  • Revision title: msubsup
  • Revision id: 34359
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment 12 words added

Revision Content

The MathML <msubsup> element is used to attach both a subscript and a superscript, together, to an expression. It uses the following syntax: <msubsup> base subscript superscript </msubsup>.

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. You can use #rgb, #rrggbb and HTML color names.
subscriptshift
The minimum space by which to shift the subscript below the baseline of the expression, as a CSS length.
superscriptshift
The minimum space by which to shift the superscript above the baseline of the expression, as a CSS length.

Examples

Rendering: x1

<math>   

  <msubsup>
    <mo> &#x222B;<!--Integral --> </mo>
    <mn> 0 </mn>
    <mn> 1 </mn>
  </msubsup>

</math>

Browser compatibility

Browser Lowest version subscriptshift attribute superscriptshift attribute
Internet Explorer --- --- ---
Firefox (Gecko) 1.0 (1.0) 1.0 (1.0) 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.msubsup","MathML 3.0 Presentation Markup msubsup", "REC") }}

See also

  • {{ MathMLElement("msub") }} (Subscript)
  • {{ MathMLElement("msup") }} (Superscript)
  • {{ MathMLElement("mmultiscripts") }} (Prescripts and tensor indices)

Revision Source

<p>The MathML <code>&lt;msubsup&gt;</code> element is used to attach both a subscript and a superscript, together, to an expression. It uses the following syntax: <code>&lt;msubsup&gt; <em>base subscript superscript</em> &lt;/msubsup&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. 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-subscriptshift">subscriptshift</dt> <dd>The minimum space by which to shift the subscript below the baseline of the expression, as a <a href="/en/CSS/length" title="en/CSS/length">CSS length.</a></dd> <dt id="attr-superscriptshift">superscriptshift</dt> <dd>The minimum space by which to shift the superscript above the baseline of the expression, as a <a href="/en/CSS/length" title="en/CSS/length">CSS length.</a></dd>
</dl>
<h2>Examples</h2>
<p>Rendering: <img alt="x1" src="/@api/deki/files/4857/=msubsup.png" style="vertical-align: middle; margin-left: 10px;"></p>
<pre class="brush: html">&lt;math&gt;   

  &lt;msubsup&gt;
    &lt;mo&gt; &amp;#x222B;&lt;!--Integral --&gt; &lt;/mo&gt;
    &lt;mn&gt; 0 &lt;/mn&gt;
    &lt;mn&gt; 1 &lt;/mn&gt;
  &lt;/msubsup&gt;

&lt;/math&gt;
</pre>
<h2>Browser compatibility</h2>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest version</th> <th><code>subscriptshift</code> attribute</th> <th><code>superscriptshift</code> attribute</th> </tr> <tr> <td>Internet Explorer</td> <td>---</td> <td>---</td> <td>---</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>1.0 (1.0)</td> <td>1.0 (1.0)</td> <td>1.0 (1.0)</td> </tr> <tr> <td>Opera (Presto)</td> <td>9.5 (2.1)</td> <td>---</td> <td>---</td> </tr> <tr> <td>Safari | Chrome | WebKit</td> <td><em>Nightly build</em></td> <td>---</td> <td>---</td> </tr> </tbody>
</table>
<h2>Specification</h2>
<ul> <li>{{ spec("http://www.w3.org/TR/MathML/chapter3.html#presm.msubsup","MathML 3.0 Presentation Markup msubsup", "REC") }}</li>
</ul>
<h2>See also</h2>
<ul> <li>{{ MathMLElement("msub") }} (Subscript)</li> <li>{{ MathMLElement("msup") }} (Superscript)</li> <li>{{ MathMLElement("mmultiscripts") }} (Prescripts and tensor indices)</li>
</ul>
Revert to this revision