HTML5 | MathML <mlabeledtr> tag

The MathML <mlabeledtr> tag in HTML5 is used to represent a label in a row, either on the left or on the right side inside of the <mtable> element. Child of this element is similar to normal table followed by m like <td> become <mtd>.

Syntax:

<mlabeledtr> element </mlabeledtr>

Attributes: This tag accepts some attributes which are listed below:



  • class|id|style: This attribute is used to hold the styles of the child elements.
  • 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.
  • columnalign: This attribute used to specify horizontal alignment of cells specified by <mtable> for this row. Possible values are left, right and center.
  • rowalign: This attribute is used to specify the vertical alignment of cells specified by <mtable> for this row. Possible values are axis, baseline, bottom, center and top.

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

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
   
<head>
    <title>HTML5 MathML mlabeledtr tag</title>
</head>
   
<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
          
        <h3>HTML5 MathML <mlabeledtr> tag</h3>
          
        <math>
            <mtable>
                <mlabeledtr>
                    <mtd>
                        <mn>X</mn>
                    </mtd>
                    <mtd>
                        <mi>Y</mi>
                    </mtd>
                    <mtd>
                        <mi>Z</mi>
                    </mtd>
                    <mtd>
                        <mn>W</mn>
                    </mtd>
                </mlabeledtr>
   
                <mtr>
                    <mtd>
                        <mi>P</mi>
                    </mtd>
                    <mtd>
                        <mi>Q</mi>
                    </mtd>
                    <mtd>
                        <mi>R</mi>
                    </mtd>
                    <mtd>
                        <mi>S</mi>
                    </mtd>
                    <mtd>
                        <mi>T</mi>
                    </mtd>
                </mtr>
            </mtable>
        </math>
    </center>
</body>
   
</html>

chevron_right


Output:

Supported Browsers: This tag is not supported by any browsers.

full-stack-img




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.