HTML5 | MathML <menclose> Tag

The HTML5 MathML <menclose> tag tag is an inbuilt element in HTML5. It is used to renders the contents which is inside of anbenclosing notation specified by the notation attribute.

Syntax:

<menclose attribute="value "> child elements </menclose">

Attributes: The tag accepts some attributes which are listed below:



  • class| id| style: This attribute is used to hold the styles of the child elements.
  • href: This attribute used to hold any hyperlink to a specified URL.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • mathcolor: This attribute holds the color of the math expressions.
  • notation: This attribute holds symbols those are each drawn as if the others are not present, using more than one symbol at at time can occurred overlapping of symbols. Possible values are actuarial, bottom, box, circle, downdiagonalstrike, left, longdiv, madruwb, phasorangle, radical, right, roundedbox, top, updiagonalarrow, updiagonalstrike and verticalstrike.

Below example will illustrate the concept of HTML5 MathML <menclose> tag:

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>HTML5 MathML menclose tag</title>
</head>
  
<body style="text-align:center;">
  
    <h1 style="color:green">GeeksforGeeks</h1>
      
    <h3>HTML5 MathML <menclose> tag</h3>
      
    <math>
        <math>
            <menclose notation="radical " 
                    mathbackground="yellow"
                    mathcolor="purple">
                <mrow>
                    <mi> x </mi>
                    <mo> + </mo>
                    <mi> y </mi>
                </mrow>
            </menclose>
            <mi>=</mi>
            <menclose notation="radical"
                    mathbackground="yellow"
                    mathcolor="purple">
                <mi>z</mi>
            </menclose>
        </math>
    </math>
</body>
  
</html>                

chevron_right


Output:

Supported Browsers: The browsers are supported by HTML5 MathML <menclose> tag are listed below:

  • Firefox


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.