HTML5 MathML
HTML5 MathML <menclose> Tag
The <menclose> tag renders one or more enclosing notations - such as a box, circle, or strike-through - around the expression it contains. The chosen notation is set with the notation attribute.
Definition and usage
The <menclose> element decorates its child content with a graphical notation. Common values include box, circle, roundedbox, left, right, top, bottom, updiagonalstrike, downdiagonalstrike, horizontalstrike and longdiv. Multiple space-separated values can be combined.
Syntax
<menclose notation="circle box">
<!-- content to enclose -->
</menclose>Example
<math>
<menclose notation="updiagonalstrike">
<mrow><mi>x</mi><mo>+</mo><mn>1</mn></mrow>
</menclose>
</math>This draws a diagonal line through the expression x + 1, commonly used to show a cancelled factor. Changing notation to box would instead draw a rectangle around it.
The <menclose> element is not part of MathML Core, so support varies. Firefox renders it well; Chromium-based browsers may ignore or only partially support certain notation values.
