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
andright
. - columnspan
- A non-negative integer value that indicates on how many columns does the cell extend.
- groupalign
- Unimplemented
- 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
andtop
. - rowspan
- A non-negative integer value that indicates on how many rows does the cell extend.
Specifications
Specification | Status | Comment |
---|---|---|
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
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | No support | 1.0 (1.7 or earlier) | No support | 9.5 | 5.1 |
columnalign androwalign |
No support | 1.0 (1.7 or earlier) | No support | 9.5 | 5.1 |
groupalign |
No support | No support | No support | No support | No support |
href |
No support | 7.0 (7.0) | No support | No support | No support |
rowspan and columnspan |
No support | 1.0 (1.7 or earlier) | No support | No support | (Yes) |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | No support | No support | 1.0 (1.9.2) | No support | No support | No support |
columnalign androwalign |
No support | No support | 1.0 (1.9.2) | No support | No support | No support |
groupalign |
No support | No support | No support | No support | No support | No support |
href |
No support | No support | 7.0 (7.0) | No support | No support | No support |
rowspan and columnspan |
No support | No support | 1.0 (1.9.2) | No support | No support | No support |