Open In App

HTML5 MathML voffset Attribute

Last Updated : 18 Nov, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

This attribute is used to set the vertical position or increment. This attribute is accepted by only one tag and that is <mpadded> tag.

Syntax:

<element voffset="length">

Attribute Values:

  • length: This attribute value holds the digit in specific unit, that will be shifted the below or pull upward the baseline.

Below example illustrate the voffset in HTML5 MathML:

Example:

HTML




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


Output: 

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

  • Firefox


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads