<mtd>

The MathML <mtd> element represents a cell in a table or a matrix. It may only appear in a <mtr> element. This element is similar to the <td> element of HTML.

Attributes

class, id, style
Provided for use with stylesheets.
columnalign
Specifies the horizontal alignment of this cell and overrides values specified by <mtable> or <mtr>.
Possible values are: left, center and right.
columnspan
A non-negative integer value that indicates on how many columns does the cell extend.
displaystyle
A Boolean value specifying whether more vertical space is used for displayed equations or, if set to false, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when displaystyle is set to true. See also movablelimits on <mo>.
href
Used to set a hyperlink to a specified URI.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
mathcolor
The text color. You can use #rgb, #rrggbb and HTML color names.
rowalign
Specifies the vertical alignment of this cell and overrides values specified by <mtable> or <mtr>.
Possible values are: axis, baseline, bottom, center and top.
rowspan
A non-negative integer value that indicates on how many rows does the cell extend.

Specifications

Specification Status Comment
MathML Core
The definition of 'mtd' in that specification.
Draft Draft specification
MathML 3.0
The definition of 'mtd' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mtd' in that specification.
Recommendation Initial specification

Browser compatibility

BCD tables only load in the browser

See also