The Wayback Machine - https://web.archive.org/web/20230205051706/https://www.geeksforgeeks.org/html5-mathml-rspace-attribute/
Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML5 MathML rspace Attribute

Improve Article
Save Article
  • Last Updated : 18 Nov, 2020
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!