MathML <math> tag
The <math>
tag in HTML5 MathML is the primary element and holds the highest priority. All MathML elements should be wrapped within the <math> tag.
Attributes: The <math>
tag accepts the following attributes:
- class|id|style: This attribute is used to define the styles for the child elements.
- dir: This attribute determines the direction of the content. It accepts two values: "ltr" for left-to-right and "rtl" for right-to-left.
- href: This attribute holds a hyperlink to a specified URL.
- mathbackground: This attribute determines the background color of the math expressions.
- mathcolor: This attribute specifies the color of the math expressions.
- display: This attribute controls how the HTML element is rendered. It can have two values: "block," which means the element will be displayed outside the current span of text, and "inline," which means the element will be displayed within the current span of text.
- mode: This attribute expresses the display attribute and can have the values "display" and "inline."
- overflow: This attribute determines how the expression behaves when it exceeds the available space. The default value is "linebreak," and other possible values are "scroll," "elide," "truncate," and "scale."