VOOZH about

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

⇱ HTML5 MathML display Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML5 MathML display Attribute

Last Updated : 23 Jul, 2025

This attribute holds the value of rendering of HTML element. There can be two value block which means that this element will be displayed outside the current span of text, inline which means that this element will be displayed inside the current span of text. This attribute is accepted by <math> tag only.

Syntax:

<element display="block|inline">

Attribute Values:

  • block: This value defines that the element will be displayed outside the current span of text.
  • inline: This value defines that the element will be displayed inside the current span of text.

Below example illustrate the display attribute of HTML5 MathML:

Example:

Output: 

👁 Image

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

  • Firefox
Comment
Article Tags: