Skip to content
Related Articles

Related Articles

Improve Article

HTML5 MathML supscriptshift Attribute

  • Last Updated : 01 Dec, 2020

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:

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<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



My Personal Notes arrow_drop_up
Recommended Articles
Page :