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

Strike through a cancelled term
<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.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships