Related Articles

Related Articles

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:

<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

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

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

  • Firefox

full-stack-img




My Personal Notes arrow_drop_up
Recommended Articles
Page :