Open In App

HTML5 MathML scriptminsize Attribute

Last Updated : 18 Nov, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads