MDN self-hosted library · e01.org

<menclose>

The <menclose> MathML element renders its content inside an enclosing notation specified by the notation attribute.

no runnable cells mathml-element upstream source

The <menclose> MathML element renders its content inside an enclosing notation specified by the notation attribute.

Attributes

This element's attributes include the global MathML attributes.

  • notation
  • : A list of notations, separated by white space, to apply to the child elements. The symbols are each drawn as if the others are not present, and therefore may overlap. Possible values are:

    Value Sample Rendering Rendering in your browser Description
    longdiv (default) Longdiv sample rendering. a2+b2 long division symbol
    actuarial Actuarial sample rendering. a2+b2 actuarial symbol
    box Box sample rendering. a2+b2 box
    roundedbox Roundedbox sample rendering. a2+b2 rounded box
    circle Circle sample rendering. a2+b2 circle
    left Left sample rendering. a2+b2 line to the left of the contents
    right Right sample rendering. a2+b2 line to the right of the contents
    top Top sample rendering. a2+b2 line above of the contents
    bottom Bottom sample rendering. a2+b2 line below of the contents
    updiagonalstrike Updiagonalstrike sample rendering. a2+b2 strikeout line through contents from lower left to upper right
    downdiagonalstrike Downdiagonalstrike sample rendering. a2+b2 strikeout line through contents from upper left to lower right
    verticalstrike Verticalstrike sample rendering. a2+b2 vertical strikeout line through contents
    horizontalstrike Horizontalstrike sample rendering. a2+b2 horizontal strikeout line through contents
    madruwb Madruwb sample rendering. a2+b2 Arabic factorial symbol
    updiagonalarrow Updiagonalarrow sample rendering. a2+b2 diagonal arrow
    phasorangle Phasorangle sample rendering. a2+b2 phasor angle

Examples

```css hidden html, body { height: 100%; }

body { display: grid; place-items: center; font-size: 2rem; }


```html
<math display="block">
  <menclose notation="circle box">
    <mi>x</mi>
    <mo>+</mo>
    <mi>y</mi>
  </menclose>
</math>

Sample rendering:

Circle and box values applied at the same time.

Rendering in your browser:

700

Technical summary

Implicit ARIA role None

Specifications

The <menclose> element is not defined in any browser-oriented specification but you can find a description in MathML 4.

Browser compatibility