Open In App

HTML5 MathML align Attribute

Last Updated : 16 Nov, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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"
            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


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads