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:
html
<!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 > |
Output:
Supported Browsers:
- Google Chrome
Please Login to comment...