Skip to content
Related Articles

Related Articles

HTML5 MathML width Attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 16 Nov, 2020

This attribute is used to set the width or increase/decrease the width of the content. This attribute is accepted by <mglyph>, <mpadded>, <mspace>, and <mtable> tags.


<element width="length">

Attribute Values:

  • length: Holds the digit in specific unit, that much width will be define.

Below example illustrate the width in HTML5 MathML:



<!DOCTYPE html>
    <title>HTML5 MathML width Attribute</title>
<body style="text-align:center;">
    <h1 style="color:green">
    <h3>HTML5 MathML width Attribute</h3>
            <mpadded lspace="2em" voffset="1em" 
                height="1em" depth="3em" width="7em">


Supported Browsers: The browsers supported by width attribute are listed below:

  • Firefox

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!