MathML overscript is created with <mover> element. It attaches an accent or a limit over an expression.
Syntax:
- <mover> base overscript </mover>
Example
To write the following expression:
Equivalent MathML code:
- <math xmlns=’http://www.w3.org/1998/Math/MathML’ display=’block’>
- <mover accent=”true”>
- <mrow>
- <mi> x </mi>
- <mo> + </mo>
- <mi> y </mi>
- <mo> + </mo>
- <mi> z </mi>
- </mrow>
- <mo> ⏞ <!– Top Curly braces –>
- </mo>
- </mover>
- </math>
Attributes of Overscript Element
index | Attribute | Description |
---|---|---|
1) | accent | If it is set true the over-script is an accent, which is drawn closer to the base expression. If false (default value) the over-script is a limit over the base expression. |
2) | align | It is used to specify the alignment of the over-script. 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 |
<mover> | Not Supported | Not Supported | Supported | Not Supported | Only Basic Support |
Leave a Reply