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:
- class|id|style: This attribute is used to hold the styles of the child elements.
- mathbackground: This attribute holds the value of the math expressions background color.
- mathcolor: This attribute holds the color of the math expressions.
- href: This attribute used to hold any hyperlink to a specified URL.
- height This attribute is used to set the height or increase/decrease the height of the content.
- width: This attribute is used to set the width or increase/decrease the width of the content.
- depth: This attribute is used to set the depth or increase/decrease the depth of the content.
- lspace: This attribute holds the value of the space length before the operator default value is thickmathspace (4.32px).
- voffset This attribute is used to set the vertical position or increment that.
Below example illustrates the concept of HTML5 MathML <mpadded> tag:
Example:
Output:
👁 Screenshot-from-2023-07-07-12-29-41
Supported Browsers: The browsers supported by HTML5 MathML <mpadded> tag are listed below: