Skip to content
Related Articles

Related Articles

Improve Article

HTML5 | MathML <mtr> Tag

  • Last Updated : 18 Nov, 2019

The MathML <mtr> tag is used to create row of a table or the matrices in HTML5. It is similar to <tr> of a table tag.


<mtr attributes="value"> child elements </mtr>

Attributes: It accepts some attributes which are listed below:

  • class|id|style: This attribute is used to hold the styles of the child elements.
  • columnalign: This attribute holds the horizontal alignment of the table cells. Possible values are left, right and center.
  • href: This attribute is used to hold any hyperlink to a specified URL.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • mathcolor: This attribute holds the color of the math expressions.
  • rowalign: This attribute holds vertical alignment of the table cells. Possible values are top, bottom and center.

Below example illustrates the MathML <mtr> tag in HTML5:


<!DOCTYPE html>
    <title>HTML5 MathML mtr tag</title>
        <h1 style="color:green"
        <h3>HTML5 MathML <mtr> tag</h3>
            <mtable frame="solid" rowlines="dashed" align="axis 1">
                <mtr mathbackground="green;">
                        <mi>C++ STL</mi>
                        <mi> 1499</mi>
                        <mi>Placement 100 </mi>
                        <mi>9999 </mi>
                        <mi>DSA Foundation </mi>


Supported Browsers: The browsers supported by HTML5 MathML <mtr> tag are listed below:

  • Firefox

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :