Open In App

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.






<!DOCTYPE html>
<html>
    <body>   
        <h3>HTML5 MathML Attribute</h3>
        <math>
            <ms mathcolor="Red" mathsize="small">
                A Computer Science Portal for
                Geeks
            </ms>
        </math>
    </body>
</html>

Output:

HTML5 MathML Attribute Example output

represents

Attribute

Description

Example

supscriptshift It defines the minimum space that shift the supscript below the baseline of the expression.
Try
displaystyle It contains a Boolean value specifying whether more vertical space or a more compact layout is used to display formulas.
Try
display It holds the value of rendering of HTML element.
Try
href It is used to specify the URL of the linked document.
Try
framespacing It defines the space between the table and the frame.
Try
linethickness It holds the value of the thickness of the fraction.
Try
close It holds the closing parentheses of any equation the same as the open attribute.
Try
mathbackground It holds the value of the math expressions background color.
Try
height It holds the height value length.
Try
id It is used to specify the document.
Try
largeop It defines whether the operator should be drawn larger than normal.
Try
frame It holds the border value for the entire table.
Try
mathsize It is used to specify the size for the content.
Try
align It holds the alignment of the tables.
Try
actiontype It contains three types of action statusline, toggle and tooltip.
Try
movablelimits It defines whether attached under- and overscripts move to sub- and superscript positions.
Try
open It holds the opening parentheses of any equation same as close attribute.
Try
separator It is used to specify if the operator is a separator.
Try
rowalign It holds vertical alignment of the table cells.
Try
scriptsizemultiplier It specifies the multiplier used to adjust the font size due to changes in scriptlevel.
Try
selection It specifies the child element that should be used for viewing.
Try
voffset It sets the vertical position or increment.
Try
accent It specifies whether an operator should be treated as an accent.
Try
accentunder It specifies whether an element is treated as an accent or not.
Try
numalign It holds the alignment value of the numerator.
Try
rowspacing It specifies the spacing between the rows of a table.
Try
rquote It holds the opening quote that depends on the dir attribute.
Try
stretchy It defines whether the operator stretches to the size of the adjacent element or not.
Try
subscriptshift It defines the minimum amount by which the subscript is shifted.
Try
width It sets the width or increase/decrease the width of the content.
Try
rowlines It holds the row borders value.
Try
mathcolor It specifies the foreground color to be used in the math expressions.
Try
denomalign It holds the alignment value of denominator.
Try
columnalign It holds the horizontal alignment of the table cells.
Try
rowspan It holds the value that how many rows does the cell extend.
Try
rspace It holds the value of the space length after the operator default value thickmathspace (4.32px).
Try
scriptlevel It holds the value to controls over the font-size.
Try
scriptminsize It holds the minimum value that has been used to adjust font size due to changes in script level.
Try
dir It holds the direction value.
Try
notation It holds symbols those are each drawn as if the others are not present.
Try
symmetric It specifies if the operator should be vertically symmetric around the imaginary Math axis.
Try
bevelled It holds the value for displaying any fraction.
Try
minsize It holds the min size of the operator.
Try
depth It sets the depth or increase/decrease the depth of the content.
Try
maxsize It holds the max size of the operator.
Try
columnlines It holds the border style value for the column-lines.
Try
columnspacing It defines the space between the table’s columns.
Try
mathvariant It specifies the logical class used for displaying the text.
Try

Article Tags :