Open In App

HTML5 MathML supscriptshift Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

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


Last Updated : 01 Dec, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads