VOOZH about

URL: https://www.geeksforgeeks.org/html/html5-mathml-displaystyle-attribute/

⇱ HTML5 MathML displaystyle Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML5 MathML displaystyle Attribute

Last Updated : 23 Jul, 2025

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:

👁 Image

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

  • Firefox
Comment
Article Tags: