HTML5 MathML
HTML5 MathML frame Attribute
The frame attribute on the <mtable> element controls whether a border is drawn around the entire table, and whether that border is solid or dashed.
Definition and usage
The frame attribute accepts three values: none (no border, the default), solid (a solid border) and dashed (a dashed border). It draws a frame around the outside of the whole table.
Which elements use it
- <mtable> - draws a frame around the whole table.
Example
<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>The frame="solid" attribute draws a solid rectangle around the identity matrix.
⚠️
The frame attribute is not part of MathML Core, so support is inconsistent. Firefox honours it; Chromium browsers may ignore it. Consider CSS borders as an alternative.
