Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML5 | MathML <menclose> Tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

html




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

Output: 
 

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

  • Firefox
  • Safari

 


My Personal Notes arrow_drop_up
Last Updated : 29 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials