The Wayback Machine - https://web.archive.org/web/20240520115730/https://www.geeksforgeeks.org/html5-mathml-close-attribute/
Open In App

HTML5 MathML close Attribute

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

This attribute holds the closing parentheses of any equation the same as the open attribute. This attribute is accepted by the <mfenched> tag.

Syntax:

<element close="parentheses">

Attribute value:

  • Parentheses: It holds the parentheses which will be used to close any equation.

Example: Below example illustrates the close attribute in the HTML5 MathML.

HTML




<!DOCTYPE html> 
<html> 
  
<body> 
    <center> 
        <h1 style="color:green"> 
            GeeksforGeeks 
        </h1> 
          
        <h3>HTML5 MathML close attribute</h3> 
          
        <math> 
            <mfenced open="{" close="}" separators=""> 
                <mrow> 
                    <msup> 
                        <mi>x</mi> 
                        <mn>2</mn> 
                    </msup> 
                    <mo>+</mo> 
                    <msup> 
                        <mi>y</mi> 
                        <mn>2</mn> 
                    </msup> 
                    <mo>=</mo> 
                    <msup> 
                        <mi>z</mi> 
                        <mn>2</mn> 
                    </msup> 
                </mrow> 
            </mfenched> 
        </math> 
    </center> 
</body> 
  
</html> 


Output:

Supported browsers: The browser supported by HTML5 MathML close attribute are listed below.

  • Firefox


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

Similar Reads