Open In App

HTML5 MathML maxsize Attribute

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:

Below example illustrate the maxsize in HTML5 MathML:



Example:




<!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:


Article Tags :