Skip to content
Related Articles

Related Articles

Improve Article

HTML5 MathML rspace Attribute

  • Last Updated : 18 Nov, 2020
Geek Week

This attribute holds the value of the space length after the operator default value thickmathspace (4.32px). This attribute is accepted by  MathML <mo> tag only.

Syntax:

<element lspace="length">

Attribute Values:

  • length: This attribute holds the value of the space length after the operator default value is thickmathspace (4.32px).

Below example illustrate the rspace attribute in HTML5 MathML:

Example:



HTML




<!DOCTYPE html> 
<html
  
<head
    <title>HTML5 MathML rspace Attribute</title
</head
  
<body style="text-align:center;"
      
    <h1 style="color:green"
        GeeksforGeeks 
    </h1
      
    <h3>HTML5 MathML rspace Attribute</h3
      
    <math
        <mpadded
            <mrow
                <mrow
                    <msup
                        <mi>x</mi
                        <mn>2</mn
                    </msup
                    <mo rspace="120px">+</mo
                    <msup
                        <mi>y</mi
                        <mn>2</mn
                    </msup
                </mrow
                <mo rspace="120px">=</mo
                <msup
                    <mi>z</mi
                    <mn>2</mn
                </msup
            </mrow
        </mpadded
    </math
</body
  
</html>

Output:

Supported Browsers: The browsers supported by HTML5 MathML rspace attribute are listed below:

  • Firefox

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




My Personal Notes arrow_drop_up
Recommended Articles
Page :