MyInternships.in

HTML5 MathML

HTML5 MathML movablelimits Attribute

The movablelimits attribute on the <mo> element controls whether limits attached to an operator move above and below it in display style, or stay beside it. Summation and limit operators use it.


Definition and Usage

When movablelimits is true and the formula is in block (display) mode, sub and superscripts on the operator are drawn under and over it. In inline mode they stay to the side to save vertical space. This matches how sums and limits are typeset in textbooks.

Syntax

Enabling movable limits
Example
<mo movablelimits="true">&#8721;</mo>

Example

This shows a limit expression where lim has its condition below it in display mode.

A limit with movable limits
Example
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>MathML movablelimits attribute</title>
</head>
<body>
  <math display="block">
    <mrow>
      <munder>
        <mo movablelimits="true">lim</mo>
        <mrow><mi>x</mi><mo>&#8594;</mo><mn>0</mn></mrow>
      </munder>
      <mfrac>
        <mrow><mi>sin</mi><mi>x</mi></mrow>
        <mi>x</mi>
      </mfrac>
    </mrow>
  </math>
</body>
</html>
ℹ️

movablelimits is part of MathML Core. Its effect depends on the display mode - it only moves limits in block/display math.

Key Takeaways

  • movablelimits lets an operator's limits sit above and below it.
  • The effect only applies in display (block) mode.
  • It is used for sums, products and limits.

Related HTML Topics

Keep learning with these closely related tutorials.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships