Skip to content
Related Articles

Related Articles

Improve Article

HTML5 | MathML <mpadded> Tag

  • Last Updated : 18 Nov, 2019

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.


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


  • 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:


<!DOCTYPE html>
    <title>HTML5 MathML mpadded tag</title>
<body style="text-align:center;">
    <h1 style="color:green">
    <h3>HTML5 MathML <mpadded> Tag</h3>
        <mpadded height="+150px" width="200px"


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

  • Firefox
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :