docs.rodeo

MDN Web Docs mirror

{{MathMLRef}} 

The <mo> MathML element represents an operator in a broad sense. Besides operators in strict mathematical meaning, this element also includes “operators” like parentheses, separators like comma and semicolon, or “absolute value” bars.

Attributes

In addition to the global MathML attributes, this element accepts the following attributes whose default values depend on the operator’s form and content:

[!NOTE] For the lspace, maxsize, minsize and rspace attributes, some browsers may also accept legacy MathML lengths.

Examples

<math display="block">
  <mrow>
    <mn>5</mn>
    <mo>+</mo>
    <mn>5</mn>
  </mrow>
</math>

<math display="block">
  <mrow>
    <mo>[</mo> <!-- default form value: prefix -->
    <mrow>
      <mn>0</mn>
      <mo>;</mo> <!-- default form value: infix -->
      <mn>1</mn>
    </mrow>
    <mo>)</mo> <!-- default form value: postfix -->
  </mrow>
</math>

{{ EmbedLiveSample('mo_example', 700, 200, "", "") }} 

Technical summary

Implicit ARIA role None

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN