MathML underscript is created with the <munder> tag. It attaches an accent or limit under an expression.
Syntax:
- <munder> base underscript </munder>
Example
To write the following expression:
Equivalent MathML code:
- <math xmlns=’http://www.w3.org/1998/Math/MathML’ display=’block’ >
- <math>
- <munder accentunder=”true”>
- <mrow>
- <mi> x </mi>
- <mo> + </mo>
- <mi> y </mi>
- <mo> + </mo>
- <mi> z </mi>
- </mrow>
- <mo> ⏟ <!–BOTTOM CURLY BRACKET–> </mo>
- </munder>
- </math>
Attributes of Underscript Element
Index | Attribute | Description |
---|---|---|
1) | accentunder | If it is set true, the element is an accent, which is drawn closer to the base expression. If false (default value), the element is a limit under the base expression. |
2) | align | It specifies the alignment of the underscript. Its possible values are: left, center, and right. |
3) | class, id, style | These are used with stylesheets. |
4) | href | It is used to set a hyperlink to a specified URI. |
5) | mathbackground | It is used to specify background color. You can use #rgb, #rrggbb and html color names. |
6) | mathcolor | It is used to set text color. You can use #rgb, #rrggbb and html color names. |
Supporting Browsers
Element | Chrome | IE | Firefox (Gecko) | Opera | Safari |
<munder> | Not Supported | Not Supported | Supported | Not Supported | Only Basic Support |
Leave a Reply