Skip to content
Related Articles

Related Articles

Improve Article

HTML5 MathML scriptminsize Attribute

  • Last Updated : 18 Nov, 2020

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:



HTML




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

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :