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:

<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"
            w3wiki 
        </h1
  
        <h3>HTML5 MathML align Attribute</h3
  
        <math
            <mi>w3wiki</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