- - 3.5.1 MathML - Table or Matrix mtable

A matrix or table is specified using the mtable element. Inside of the mtable element, only mtr or mlabeledtr elements may appear. Table rows that have fewer columns than other rows of the same table (whether the other rows precede or follow them) are effectively padded on the right (or left in RTL context) with empty mtd elements so that the number of columns in each row equals the maximum number of columns in any row of the table.

Table Matrix - mtable rowalign 1 1 2 g M baseline g M g 1 1 + 1 1 2 3 0 top 0 0 0 1 1 + 1 1 2 3 0 bottom 0 0 0 1 1 1 1 2 3 0 center 0 0 0 1 1 + 1 1 2 3 0 axis 0 0 0 1 1 + 1 1 baseline 3 1 1 top 3 1 1 bottom 3 1 1 center 3 1 1 axis 3

MathML

```<math mathsize="50">
<mspace linebreak="newline" indentalign="center"></mspace>
<mtext style="border:1px;" mathsize="50">Table Matrix - mtable rowalign</mtext>
<mspace linebreak="newline" indentalign="center"></mspace>
<mrow style="border:1px;">
<mtable style="border:1px" axisline='1' baseline='1'>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>2</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>g</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>M</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>baseline</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>g</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>M</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>g</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
</mtr>
</mtable>
<mo>+</mo>
<mtable style="border:1px" axisline='1' baseline='1' rowalign="top">
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>2</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>top</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
</mtr>
</mtable>
<mo>+</mo>
<mtable style="border:1px" axisline='1' baseline='1' rowalign="bottom">
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>2</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>bottom</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
</mtr>
</mtable>
</mrow>
<mspace linebreak="newline" indentalign="center"></mspace>
<mrow style="border:1px;">
<mtable style="border:1px" axisline='1' baseline='1' rowalign="center">
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>2</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>center</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
</mtr>
</mtable>
<mo>+</mo>
<mtable style="border:1px" axisline='1' baseline='1' rowalign="axis">
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>2</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>axis</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>0</mn>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
</mtr>
</mtable>
<mo>+</mo>
<mtable style="border:1px" axisline='1' baseline='1' rowalign="baseline top bottom center axis">
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>baseline</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>top</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>bottom</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>center</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
<mtr style="border:1px" axisline='1' baseline='1'>
<mtd style="border:1px" axisline='1' baseline='1'>
<mfrac>
<mn>1</mn>
<mn>1</mn>
</mfrac>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mtext>axis</mtext>
</mtd>
<mtd style="border:1px" axisline='1' baseline='1'>
<mn>3</mn>
</mtd>
</mtr>
</mtable>
</mrow>
[/itex]
```