VOOZH about

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

⇱ HTML5 MathML mathsize Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML5 MathML mathsize Attribute

Last Updated : 23 Jul, 2025

The MathML mathsize attribute in HTML5 is used to specify the size for the content. The possible values are small, normal, big or a custom length value. This attribute is accepted by <mi>, <mn>, <mo>, <ms> and <mtext> tags.

Syntax:

<element mathsize="small | normal | big | length">

Attribute Values: This attribute has four values as mentioned above and described below:

  • small: This value sets the content to a smaller size than the normal.
  • normal: This value sets the content size to normal. This is the original size of the content.
  • big: This value sets the content to a bigger size than the normal.
  • length: This value can be used to set the content size to any given value.

The examples below illustrate the MathML mathsize attribute:

Example 1: 

Output:

👁 Image

Example 2:

Output:

👁 Image

Supported Browsers: The browsers supported by HTML5 MathML mathsize attribute are listed below:

  • Firefox
Comment
Article Tags: