Open In App

HTML5 MathML scriptsizemultiplier Attribute

The MathML scriptsizemultiplier attribute in HTML5 is used to specify the multiplier used to adjust the font size due to changes in scriptlevel. The default value of this attribute is 0.71. This attribute is accepted by the <mstyle> tag only.

Syntax:



<element scriptsizemultiplier="number">

Attribute Values: This attribute has a single value as mentioned above and described below:

The example below illustrates the MathML scriptsizemultiplier attribute:



Example:




<!DOCTYPE html>
<html>
  
<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
  
        <h3>
            HTML5 MathML scriptsizemultiplier
            Attribute
        </h3>
          
        <math>
            <mstyle displaystyle="true"
                mathcolor="purple" scriptlevel="0" 
                scriptsizemultiplier="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 scriptsizemultiplier attribute are listed below:


Article Tags :