Open In App

HTML5 MathML voffset Attribute

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:

Below example illustrate the voffset in HTML5 MathML:



Example:




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


Article Tags :