Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. MathML
  3. Reference
  4. Elements
  5. <mtd>

<mtd>

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨January 2023⁩.

* Some parts of this feature may have varying levels of support.

The<mtd>MathML 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 ofHTML.

Attributes

This element's attributes include theglobal MathML attributes as well as the following attributes:

columnspan

A non-negative integer value that indicates on how many columns does the cell extend.

rowspan

A non-negative integer value that indicates on how many rows does the cell extend.

Some browsers may also support the following attributes:

columnalignNon-standard

Specifies the horizontal alignment of this cell and overrides values specified by<mtable> or<mtr>.Possible values are:left,center andright.

rowalignNon-standard

Specifies the vertical alignment of this cell and overrides values specified by<mtable> or<mtr>.Possible values are:axis,baseline,bottom,center andtop.

Examples

Matrix using mtable, mrow, mtr and mtd

html
<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>

Technical summary

Implicit ARIA role None

Specifications

Specification
MathML Core
# entry-in-table-or-matrix-mtd

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp