Open In App

HTML5 | MathML <msup> Tag

The MathML <msup> tag in HTML5 is used to print power on any expression. 

Syntax:  



<msup> child elements </msup>

Attributes: This tag accepts some attributes which are listed below:  

Below example illustrates the MathML <msup> tag in HTML5:



Example:  




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML5 MathML msup tag</title>
</head>
 
<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
 
        <h3>HTML5 MathML <msup> tag</h3>
 
        <math>
            <mfenced open="(" close=")" separators="">
                <mrow>
                    <msup>
                        <mi>x</mi>
                        <mn>2</mn>
                    </msup>
                    <mo>+</mo>
                    <msup>
                        <mi>y</mi>
                        <mn>2</mn>
                    </msup>
                    <mo>=</mo>
                    <msup>
                        <mi>z</mi>
                        <mn>2</mn>
                    </msup>
                </mrow>
            </mfenched>
        </math>
    </center>
</body>
 
</html>

Output:  

Supported Browsers: The browsers supported by HTML5 MathML <msup> tag are listed below:  

 


Article Tags :