HTML5 MathML
HTML5 MathML rowalign Attribute
The rowalign attribute controls the vertical alignment of cell contents within one or more table rows. It can be set on <mtable>, <mtr> or a single <mtd>.
Definition and usage
The rowalign attribute accepts values such as top, center, bottom, baseline and axis. On <mtable> it provides a space-separated list of alignments applied to successive rows; on <mtr> and <mtd> it aligns a specific row or cell.
Which elements use it
- <mtable> - a list of vertical alignments for each row.
- <mtr> - vertical alignment of the row.
- <mtd> - vertical alignment of a single cell.
Example
<math>
<mtable>
<mtr rowalign="top">
<mtd><mn>1</mn></mtd>
<mtd><mfrac><mn>1</mn><mn>2</mn></mfrac></mtd>
</mtr>
</mtable>
</math>With rowalign="top", the number 1 and the fraction align by their tops rather than their baselines.
⚠️
The rowalign attribute is not part of MathML Core and support varies; Firefox generally honours it while Chromium may not.
