Open In App

HTML5 MathML supscriptshift Attribute

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:

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:


Article Tags :