files/en-us/web/mathml/reference/element/mtd/index.md
The <mtd> MathML element represents a cell in a table or a matrix. It may only appear in a {{ MathMLElement("mtr") }} element. This element is similar to the {{ HTMLElement("td") }} element of HTML.
This element's attributes include the global MathML attributes as well as the following attributes:
columnspan
rowspan
Some browsers may also support the following attributes:
columnalign {{Non-standard_Inline}}
left, center and right.rowalign {{Non-standard_Inline}}
axis, baseline, bottom, center and top.<math display="block">
<mfrac>
<mi>A</mi>
<mn>2</mn>
</mfrac>
<mo>=</mo>
<mrow>
<mo>(</mo>
<mtable>
<mtr>
<mtd><mn>1</mn></mtd>
<mtd><mn>2</mn></mtd>
<mtd><mn>3</mn></mtd>
</mtr>
<mtr>
<mtd><mn>4</mn></mtd>
<mtd><mn>5</mn></mtd>
<mtd><mn>6</mn></mtd>
</mtr>
<mtr>
<mtd><mn>7</mn></mtd>
<mtd><mn>8</mn></mtd>
<mtd><mn>9</mn></mtd>
</mtr>
</mtable>
<mo>)</mo>
</mrow>
</math>
{{EmbedLiveSample('Alignment with row number')}}
{{Specifications}}
{{Compat}}