Open In App

HTML5 MathML <mpadded> Tag

The MathML <mpadded> tag in HTML5 is used to add extra padding and to set the general adjustment of position and size of enclosed contents.

Syntax:



<mpadded attribute="value"> </mpadded> 

Attributes:

Below example illustrates the concept of HTML5 MathML <mpadded> tag:



Example:




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML5 MathML mpadded tag</title>
</head>
 
<body style="text-align:center;">
 
    <h1 style="color:green">
        GeeksforGeeks
    </h1>
 
    <h3>HTML5 MathML mpadded Tag</h3>
 
    <math>
        <mpadded height="100px"
                 width="100px"
                 lspace="height">
            <mrow>
                <mrow>
                    <msup>
                        <mi>x</mi>
                        <mn>2</mn>
                    </msup>
                    <mo>+</mo>
                    <msup>
                        <mi>y</mi>
                        <mn>2</mn>
                    </msup>
                </mrow>
                <mo>=</mo>
                <msup>
                    <mi>z</mi>
                    <mn>2</mn>
                </msup>
            </mrow>
        </mpadded>
    </math>
</body>
 
</html>

Output:

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


Article Tags :