HTML5 MathML align Attribute
This attribute holds the alignment of the tables. Possible values are axis, baseline, bottom, center and top. This attribute can be accepted by many tags like <mtable>, <munder>, <mover> and <munderover> tags.
Syntax:
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
<element align="axis|baseline|bottom|center|top">
Attributes value:
- axis: This attribute defines the row alignment for the table accepted int numbers.
- baseline: This attribute set the alignment of the table at baseline.
- bottom: This attribute set the alignment of the table at bottom.
- center: This attribute set the alignment of the table at center.
- top: This attribute set the alignment of the table at top.
Below example illustrate the align attribute:
HTML
<!DOCTYPE html> <html> <head> <title>HTML5 MathML align Attribute</title> </head> <body> <center> <h1 style="color:green"> GeeksforGeeks </h1> <h3>HTML5 MathML align Attribute</h3> <math> <mi>GeeksforGeeks</mi> <mo>=</mo> <mtable frame="solid" rowlines="dashed" align="axis 3"> <mtr mathbackground="green;"> <mtd>Course</mtd> <mtd>Fee</mtd> </mtr> <mtr> <mtd> <mi>C++ STL</mi> </mtd> <mtd> <mi> 1499</mi> </mtd> </mtr> <mtr> <mtd> <mi>Placement 100 </mi> </mtd> <mtd> <mi>9999 </mi> </mtd> </mtr> <mtr> <mtd> <mi>DSA Foundation </mi> </mtd> <mtd> <mi>7999</mi> </mtd> </mtr> </mtable> </math> </center> </body> </html> |
Output:

Supported Browsers: The browsers supported by HTML5 MathML align attribute are listed below:
- Firefox


