Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML5 MathML open Attribute

  • Last Updated : 16 Nov, 2020

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

Syntax:

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

<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



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!