This attribute holds the minimum value that has been used to adjust font size due to changes in script level. Its default value is 0.71. This attribute is accepted by <mstyle> tag only.
Syntax:
<element scriptminsize="number">
Attribute Values:
- number: This value is used to set a minimum font size allowed due to changes in scriptlevel.
Below example illustrate the scriptminsize in HTML5 MathML:
Example:
<!DOCTYPE html>
<html>
<body>
<center>
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>HTML5 MathML scriptminsize Attribute</h3>
<math>
<mstyle displaystyle="true"
mathcolor="purple"
scriptlevel="0"
scriptminsize="2">
<mrow>
<msubsup>
<mo>ā</mo>
<mn> i=1 </mn>
<mn> n </mn>
</msubsup>
<mo>+</mo>
<msub>
<mi>x</mi>
<mn>i</mn>
</msub>
<mo>=</mo>
<mn>?</mn>
</mrow>
</mstyle>
</math>
</center>
</body>
</html>
Output:
Supported Browsers: The browsers supported by HTML5 MathML scriptminsize attribute are listed below:
- Firefox