Open In App

HTML5 MathML displaystyle Attribute

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
1 Like
Like
Report

This attribute contains a Boolean value specifying whether more vertical space is used for displayed equations or, if set to false, a more compact layout is used to display formulas. This attribute is accepted by all the MathML tags.

Syntax:

<element displaystyle="true|false">

Attribute Values:

  • true: This value defines that more vertical space is used for displayed equations.
  • false: This value defines that more compact layout is used to display formulas.

Below examples illustrate the displaystyle attribute in HTM5 MathML

Example:

Output:

Supported Browsers: The browsers supported by displaystyle attribute are listed below:

  • Firefox

Next Article

Similar Reads