concept

Mathml presentation attributes — CSS reference

MathML attributes such as scriptlevel and displaystyle can provide presentational hints for CSS mathematical layout. The example uses scriptlevel to establish depth two.

Formal Syntax & Structure

css syntaxcss
<mrow scriptlevel="2">…</mrow>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>MathML presentation attributes</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}
</style><body><math id="m"><mi id="b">x</mi><mrow id="t" scriptlevel="2"><mi>y</mi></mrow></math></body></html>
CSS Reference