This attribute holds the alignment value of denominator, possible values are left, center and right. This attribute is accepted by <mfrac> tag only.
Syntax:
<element denomalign="left|right|center">
Attribute Values:
- left: This attribute sets the alignment of the denominator context of each row to the left.
- right: This attribute sets the alignment of the denominator context of each row to the right.
- center: This attribute sets the alignment of the denominator context of each row into the center.
Below example illustrate the denominator attribute in HTML5 MathML:
Example:
<!DOCTYPE html>
<html>
<head>
<title>HTML5 MathML denomalign attribute</title>
</head>
<body>
<center>
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>HTML5 MathML denomalign attribute</h3>
<math>
<mfrac bevelled="true" denomalign="left" >
<mfrac>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<msup>
<mi>y</mi>
<mn>2</mn>
</msup>
</mfrac>
<mfrac>
<msup>
<mi>a</mi>
<mn>2</mn>
</msup>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
</mfrac>
</mfrac>
</math>
</center>
</body>
</html>
Output:
Supported Browsers: The browsers supported by HTML5 MathML denomalign attribute are listed below:
- Firefox