With MathMl, we can specify matrices with an mtable with rows in mtr elements and entries in mtd elements.
<!doctype html>
<html>
<head>
<title>XoaX.net's MathML: A Matrix Example</title>
</head>
<body>
<p>A 2 by 3 matrix
<math display="block">
<mi>M</mi>
<mo>=</mo>
<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>
</mtable>
<mo>]</mo>
</math>
</p>
</body>
</html>© 20072026 XoaX.net LLC. All rights reserved.