HTML5 MathML numalign Attribute
This attribute holds the alignment value of the numerator, possible values are left, right and center. This attribute is accepted by <mfrac> tag only.
Syntax:
<element numalign="left|right|center">
Attribute values:
- left: This attribute sets the numerator to the left.
- right: This attribute sets the numerator to the right.
- center: This attribute sets the numerator into the center.
Example: Below example illustrates the numalign attribute in HTML5 MatheML.
HTML
<!DOCTYPE html> < html > < body > < center > < h1 style = "color:green" > w3wiki </ h1 > < h3 >HTML5 MathML numalign Attribute</ h3 > < math > < mfrac bevelled = "true" > < mfrac numalign = "center" > < 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 browser supported by HTML5 MathML numalign attribute are listed below
- Firefox