If the stretchy is set to be true then this attribute holds the min 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 the size of the operator.
Example: Below example illustrates the minsize attribute in HTML5 MathML.
<!DOCTYPE html>
<html>
<body style="text-align:center;">
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>HTML5 MathML minsize Attribute</h3>
<math>
<mrow>
<mrow>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo stretchy="true"
minsize="250em">+</mo>
<msup>
<mi>y</mi>
<mn>2</mn>
</msup>
</mrow>
<mo stretchy="true"
minsize="30em">=</mo>
<msup>
<mi>z</mi>
<mn>2</mn>
</msup>
</mrow>
</math>
</body>
</html>
Output:
Supported browsers: The browsers supported by HTML5 MathML minsize attribute are listed below:
- Firefox