Skip to content
Related Articles

Related Articles

HTML5 | MathML <menclose> Tag
  • Last Updated : 07 Nov, 2019
GeeksforGeeks - Summer Carnival Banner

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:






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

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :