"mtable" - MathML Table Element

Q

How to use the MathML Table Element: "mtable"?

✍: FYIcenter.com

A

"mtable" is the MathML Table Element that allows you to specify sub-elements as table rows.

The syntax for "mtable" element is:

<mtable> row row ... </mtable>

Note that each row in a "mtable" element must be defined as a "mtr" element.

"mtable" element supports some useful attributes:

  • "rowalign" - Specifies the vertical alignment of the cells with respect to other cells within the same row.
  • "columnalign" - specifies the horizontal alignment of the cells with respect to other cells within the same column.
  • "rowspacing" - specifies how much space to add between rows.
  • "columnspacing" - specifies how much space to add between columns.
  • "frame" - specifies whether and what kind of lines should be drawn around the table.

Here is an example of using the "mtable" element.

<math><mtable frame="solid">
  <mtr><mtd><mn>1</mn></mtd><mtd><mn>0</mn></mtd></mtr>
  <mtr><mtd><mn>0</mn></mtd><mtd><mn>1</mn></mtd></mtr></mtable></math>
    
      10
      01

 

"mtr" - MathML Table Row Element

MathML Elements for Tables

MathML Elements for Tables

⇑⇑ MathML (Mathematical Markup Language)

2025-06-18, 366🔥, 0💬