HTML5 MathML

HTML5 MathML movablelimits Attribute

The movablelimits attribute on <mo> determines whether an operator's limits are placed above and below it or beside it, depending on whether the formula is in display or inline style.


Definition and usage

The movablelimits attribute takes true or false. When true, an operator's scripts (such as summation limits) render above and below it in display style, but move to the side in inline style to save vertical space. Operators like the summation sign have movablelimits set to true by default.

Which elements use it

  • <mo> - controls whether attached limits move between the over/under and sub/sup positions.

Example

Summation with movable limits
<math display="block">
  <munderover>
    <mo movablelimits="true">&#8721;</mo>
    <mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow>
    <mi>n</mi>
  </munderover>
</math>

In display style the limits k=0 and n sit below and above the summation sign; in inline style they would move to subscript and superscript positions.

ℹ️

The movablelimits attribute is part of MathML Core and is supported by modern browsers.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships