HTML5 MathML
HTML5 MathML accent Attribute
The accent attribute on <mover>, <munder> and <munderover> controls whether the attached script is rendered tightly against the base like a diacritic accent, or spaced further away like a limit.
Definition and usage
The accent attribute takes true or false. When true, the over- or under-script is drawn close to the base, as with a hat, bar or tilde. When false, it is spaced further from the base, appropriate for limits such as those above a summation sign.
Which elements use it
- <mover> - accent above the base.
- <munder> - accent below the base (as underaccent).
- <munderover> - accents both above and below.
Example
<math>
<mover accent="true">
<mi>x</mi>
<mo>¯</mo>
</mover>
</math>With accent="true", the bar sits snugly over x to denote the mean (x-bar); setting it false would push the bar higher and further from the letter.
ℹ️
The accent attribute is part of MathML Core and is supported by modern browsers.
