HTML5 MathML supscriptshift Attribute
Last Updated :
01 Dec, 2020
Improve
This attribute defines the minimum space that shift the supscript below the baseline of the expression. This attribute is accepted by the <mmultiscripts>, <msub>, and <msubsup> tags.
Syntax:
<element supscriptshift length="length">
Attribute Values:
- length: This attribute holds the digit in specific unit, that much will be shifted the supscriptshift below the baseline.
Below example illustrate the supscriptshift in HTML5 MathML:
Example:
<!DOCTYPE html>
<html>
<head>
<title>
HTML5 MathML supscriptshift Attribute
</title>
</head>
<body>
<center>
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>
HTML5 MathML supscriptshift Attribute
</h3>
<math>
<mfenced>
<mrow>
<msub supscriptshift="5px">
<mi>x</mi>
<mn>2</mn>
</msub>
<mo>+</mo>
<msub supscriptshift="5px">
<mi>y</mi>
<mn>2</mn>
</msub>
<mo>=</mo>
<msub supscriptshift="5px">
<mi>z</mi>
<mn>2</mn>
</msub>
</mrow>
</mfenced>
</math>
</center>
</body>
</html>
Output:

Supported Browsers: The browsers supported by supscriptshift attribute are listed below:
- Firefox