Skip to content
Related Articles

Related Articles

Improve Article
HTML5 MathML maxsize Attribute
  • Last Updated : 18 Nov, 2020

If the stretchy is set to be true then this attribute holds the max size of the operator. Possible values are infinity or any length unit. This attribute is accepted by <mo> tag only.

Syntax:

<element maxsize="numbers">

Attribute Value:

  • numbers: This attribute sets or size of the operator.

Below example illustrate the maxsize in HTML5 MathML:

Example:



HTML




<!DOCTYPE html> 
<html
  
<head
    <title>HTML5 MathML maxsize Attribute</title
</head
  
<body style="text-align:center;"
      
    <h1 style="color:green"
        GeeksforGeeks 
    </h1
      
    <h3>HTML5 MathML maxsize Attribute</h3
      
    <math
        <mrow
            <mrow
                <msup
                    <mi>x</mi
                    <mn>2</mn
                </msup
                <mo stretchy="true" 
                    maxsize="250em">+</mo
                <msup
                    <mi>y</mi
                    <mn>2</mn
                </msup
            </mrow
            <mo stretchy="true" 
                 maxsize="30em">=</mo
            <msup
                <mi>z</mi
                <mn>2</mn
            </msup
        </mrow
    </math
</body
  
</html>

Output:

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

  • Firefox



My Personal Notes arrow_drop_up
Recommended Articles
Page :