HTML5 MathML Attribute Complete Reference
The MathML comes in HTML5 the current MathML version is 3 it was introduced in 2015. The MathML stands for Mathematics Markup Language. It represents mathematical equations or expressions in web browsers like other HTML elements.
The MathML is used to describe mathematics as a basis for machine-to-machine communication, it is intended to be handled by specialized authoring tools such as equation editors and it is meaningful to other applications also.
Note: HTML5 MathML attributare only supported by Mozilla Firefox browser.
Example: In this example, HTML5 MathML attributes (e.g., mathcolor, mathsize) style mathematical content, enhancing accessibility and visual presentation for mathematical expressions within HTML documents.
HTML
<!DOCTYPE html> < html > < body > < h3 >HTML5 MathML Attribute</ h3 > < math > < ms mathcolor = "Red" mathsize = "small" > A Computer Science Portal for Beginner </ ms > </ math > </ body > </ html > |
Output:
Attribute |
Description |
Example |
---|---|---|
supscriptshift | It defines the minimum space that shift the supscript below the baseline of the expression. | |
displaystyle | It contains a Boolean value specifying whether more vertical space or a more compact layout is used to display formulas. | |
display | It holds the value of rendering of HTML element. | |
href | It is used to specify the URL of the linked document. | |
framespacing | It defines the space between the table and the frame. | |
linethickness | It holds the value of the thickness of the fraction. | |
close | It holds the closing parentheses of any equation the same as the open attribute. | |
mathbackground | It holds the value of the math expressions background color. | |
height | It holds the height value length. | |
id | It is used to specify the document. | |
largeop | It defines whether the operator should be drawn larger than normal. | |
frame | It holds the border value for the entire table. | |
mathsize | It is used to specify the size for the content. | |
align | It holds the alignment of the tables. | |
actiontype | It contains three types of action statusline, toggle and tooltip. | |
movablelimits | It defines whether attached under- and overscripts move to sub- and superscript positions. | |
open | It holds the opening parentheses of any equation same as close attribute. | |
separator | It is used to specify if the operator is a separator. | |
rowalign | It holds vertical alignment of the table cells. | |
scriptsizemultiplier | It specifies the multiplier used to adjust the font size due to changes in scriptlevel. | |
selection | It specifies the child element that should be used for viewing. | |
voffset | It sets the vertical position or increment. | |
accent | It specifies whether an operator should be treated as an accent. | |
accentunder | It specifies whether an element is treated as an accent or not. | |
numalign | It holds the alignment value of the numerator. | |
rowspacing | It specifies the spacing between the rows of a table. | |
rquote | It holds the opening quote that depends on the dir attribute. | |
stretchy | It defines whether the operator stretches to the size of the adjacent element or not. | |
subscriptshift | It defines the minimum amount by which the subscript is shifted. | |
width | It sets the width or increase/decrease the width of the content. | |
rowlines | It holds the row borders value. | |
mathcolor | It specifies the foreground color to be used in the math expressions. | |
denomalign | It holds the alignment value of denominator. | |
columnalign | It holds the horizontal alignment of the table cells. | |
rowspan | It holds the value that how many rows does the cell extend. | |
rspace | It holds the value of the space length after the operator default value thickmathspace (4.32px). | |
scriptlevel | It holds the value to controls over the font-size. | |
scriptminsize | It holds the minimum value that has been used to adjust font size due to changes in script level. | |
dir | It holds the direction value. | |
notation | It holds symbols those are each drawn as if the others are not present. | |
symmetric | It specifies if the operator should be vertically symmetric around the imaginary Math axis. | |
bevelled | It holds the value for displaying any fraction. | |
minsize | It holds the min size of the operator. | |
depth | It sets the depth or increase/decrease the depth of the content. | |
maxsize | It holds the max size of the operator. | |
columnlines | It holds the border style value for the column-lines. | |
columnspacing | It defines the space between the table’s columns. | |
mathvariant | It specifies the logical class used for displaying the text. |
Contact Us