Open In App

HTML5 MathML rowalign Attribute

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

 This attribute holds vertical alignment of the table cells. Possible values are top, bottom and center. This attribute is accepted by <mtable>, <mtd> and <mtr> tags.

Syntax:

<element rowalign="top|bottom|center">

Attribute Values:

  • top: This attribute sets the alignment of row top.
  • bottom: This attribute sets the alignment of row bottom.
  • center: This attribute sets the alignment of row center.

Below example illustrate the rowalign attribute in HTML5 MathML:

Example:

HTML




<!DOCTYPE html> 
<html
  
<head
    <title>HTML5 MathML rowalign Attribute</title
</head
  
<body
    <center
        <h1 style="color:green"
            GeeksforGeeks 
        </h1
  
        <h3>HTML5 MathML rowalign Attribute</h3
  
        <math
            <mi>GeeksforGeeks</mi
            <mo>=</mo
            <mtable frame="solid" rowlines="dashed"
                rowalign="bottom"
  
                <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 rowalign attribute are listed below:

  • Firefox


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

Similar Reads