Open In App
Related Articles

HTML5 MathML open Attribute

Improve Article
Improve
Save Article
Save
Like Article
Like

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

Syntax:

<element open="parentheses">

Attribute Value:

  • Parentheses: Holds the parentheses which will be used to open any equation.

Below example illustrate the open Attribute in HTML5 MathML:

Example:

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML5 MathML open attribute</title>
</head>
  
<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
  
        <h3>HTML5 MathML open 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>
                </mfenced>
        </math>
    </center>
</body>
  
</html>

Output:

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

  • Firefox

Last Updated : 16 Nov, 2020
Like Article
Save Article
Similar Reads
Related Tutorials