MathML <mo> Tag
The HTML5 MathML <mo>
tag is used to display mathematical operators between elements. It can represent any type of mathematical operator.
Attributes: The <mo>
tag accepts the following attributes:
- accent: This attribute specifies whether the operator should be treated as an accent. Possible values are "true" or "false".
- class|id|style: This attribute is used to define the styles for the child elements.
- href: This attribute holds a hyperlink to a specified URL.
- fence: This attribute specifies whether the operator is a fence or not. Possible values are "true" or "false".
- form: This attribute is used to specify the role of the operator. For normal operators like + or -, this attribute is not required. Possible values are "prefix," "infix," and "postfix."
- largeop: This attribute defines whether the operator should be displayed larger than normal when displaystyle="true" is set. Possible values are "true" or "false."
- lspace: This attribute determines the length of the space before the operator. The default value is "thickmathspace" (4.32px).
- rspace: This attribute determines the length of the space after the operator. The default value is "thickmathspace" (4.32px).
- mathbackground: This attribute determines the background color of the math expressions.
- mathcolor: This attribute specifies the color of the math expressions.
- dir: This attribute specifies the text direction. Accepted values are "ltr" (left-to-right) and "rtl" (right-to-left).
- mathsize: This attribute determines the size of the content. Possible values are "small," "medium," and "big."
- mathvariant: This attribute allows for various typographic variations, such as font-family selection.
- separator: This attribute holds the separator for each string or any element you want to separate from others.
- stretchy: This attribute defines whether the operator stretches to the size of the adjacent element. Possible values are "true" or "false."
- maxsize: If the stretchy attribute is set to "true," this attribute holds the maximum size of the operator. Possible values are "infinity" or any length unit.
- minsize: If the stretchy attribute is set to "true," this attribute holds the minimum size of the operator. Possible values are "infinity" or any length unit.
- symmetric: If the stretchy attribute is set to "true," this attribute specifies whether the operator should be vertically symmetric around the imaginary math axis.