Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. MathML
  3. Reference
  4. Attributes

MathML attributes

This is an alphabetical list of MathML attributes. More details for each attribute are available on relevantMathML element pages and on theglobal attributes page. Thevalues page also describes some notes on common values used by MathML attributes.

Note:As explained on the mainMathML page, MDN usesMathML Core as a reference specification. However, legacy features that are still implemented by some browsers are also documented. You can find further details for these and other features inMathML 4.

NameElements accepting attributeDescription
accent<mo> A<boolean> indicating whether the operator should be treated as an accent when used as an under- or over-script.
accent<mover>,<munderover> A<boolean> indicating whether the under script should be treated as an accent.
accentunder<munder>,<munderover> A<boolean> indicating whether the over script should be treated as an accent.
actiontypeDeprecated<maction>A string value specifying the action happening for this element.
align<mtable> Specifies vertical alignment of the table with respect to its environment.
backgroundDeprecated<mstyle> Use CSSbackground-color instead.
closeDeprecated<mfenced>A string for the closing delimiter.
colorDeprecated<mstyle> Use CSScolor instead.
columnalign<mtable>,<mtd>,<mtr>Specifies the horizontal alignment of table cells.
columnlines<mtable>Specifies table column borders.
columnspacing<mtable>Specifies the space between table columns.
columnspan<mtd> A non-negative integer value that indicates over how many table columns the cell extends.
denomalignDeprecated<mfrac>The alignment of the denominator under the fraction.
depth<mpadded> A<length-percentage> indicating the desired depth (below the baseline).
dirAll MathML elements The text direction. Possible values are eitherltr (left to right) orrtl (right to left).
display<math> Specifies the rendering mode. The valuesblock andinline are allowed.
displaystyleAll MathML elements

A<boolean> specifying whether to set themath-style tonormal (if true) orcompact (otherwise).

fence<mo> A<boolean> specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute.
fontfamilyDeprecated<mstyle> Use CSSfont-family instead.
fontsizeDeprecated<mstyle> Use CSSfont-size instead.
fontstyleDeprecated<mstyle> Use CSSfont-style instead.
fontweightDeprecated<mstyle> Use CSSfont-weight instead.
frame<mtable> Specifies borders of an entire<mtable>. Possible values are:none (default),solid anddashed.
framespacing<mtable> Specifies additional space added between the table andframe.
height<mpadded>,<mspace> A<length-percentage> indicating the desired height (above the baseline).
hrefAll MathML elementsUsed to set a hyperlink to a specified URI.
idAll MathML elementsSets up a unique identifier associated with the element.
linethickness<mfrac>A<length-percentage> indicating the thickness of the horizontal fraction line.
lspace<mo> A<length-percentage> indicating amount of space before the operator.
lspace<mpadded> A<length-percentage> indicating the horizontal location of the positioning point of the child content with respect to the positioning point of the element.
lquoteDeprecated<ms> The opening quote to enclose the content. The default value is&quot;.
mathbackgroundAll MathML elements Abackground-color for the element.
mathcolorAll MathML elements Acolor for the element.
mathsizeAll MathML elements A<length-percentage> used as afont-size for the element.
mathvariantAll MathML elementsThe logical class of token elements, which varies in typography.
maxsize<mo>A<length-percentage> indicating the maximum size of the operator when it is stretchy.
minsize<mo>A<length-percentage> indicating the minimum size of the operator when it is stretchy.
movablelimits<mo> A<boolean> indicating whether attached under- and overscripts move to sub- and superscript positions whenmath-style is set tocompact.
notation<menclose> A list of notations, separated by white space, to apply to the child elements.
numalignDeprecated<mfrac>The alignment of the numerator over the fraction.
openDeprecated<mfenced>A string for the opening delimiter.
rowalign<mtable>,<mtd>,<mtr>Specifies the vertical alignment of table cells.
rowlines<mtable>Specifies table row borders.
rowspacing<mtable>Specifies the space between table rows.
rowspan<mtd> A non-negative integer value that indicates on how many rows does the cell extend.
rspace<mo>A<length-percentage> indicating the amount of space after the operator.
rquoteDeprecated<ms> The closing quote to enclose the content. The default value is&quot;.
scriptlevelAll MathML elements Specifies amath-depth for the element. See thescriptlevel page for accepted values and mapping.
scriptminsizeDeprecated<mstyle> Specifies a minimum font size allowed due to changes inscriptlevel.
scriptsizemultiplierDeprecated<mstyle> Specifies the multiplier to be used to adjust font size due to changes inscriptlevel.
selectionDeprecated<maction>The child element visible, only taken into account for someactiontype values.
separator<mo> A<boolean> specifying whether the operator is a separator (such as commas). There is no visual effect for this attribute.
separatorsDeprecated<mfenced> A sequence of zero or more characters to be used for different separators.
stretchy<mo> A<boolean> indicating whether the operator stretches to the size of the adjacent element.
subscriptshiftDeprecated<msub>,<msubsup>,<mmultiscripts> A<length-percentage> indicating the minimum amount to shift the baseline of the subscript down.
superscriptshiftDeprecated<msup>,<msubsup>,<mmultiscripts> A<length-percentage> indicating the minimum amount to shift the baseline of the superscript up.
symmetric<mo> A<boolean> indicating whether a stretchy operator should be vertically symmetric around the imaginary math axis (centered fraction line).
voffset<mpadded>A<length-percentage> indicating the vertical location of the positioning point of the child content with respect to the positioning point of the element.
width<mpadded>,<mspace>,<mtable> A<length-percentage> indicating the desired width.
xmlns<math> Specifies the URI for the MathML namespace (http://www.w3.org/1998/Math/MathML)

[8]ページ先頭

©2009-2025 Movatter.jp