Open In App

HTML5 MathML <menclose> Tag

Last Updated : 07 Jul, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

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: 

Screenshot-from-2023-07-06-11-35-30

HTML5 MathML menclose Tag

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

  • Firefox
  • Safari


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads