Open In App

HTML5 MathML scriptsizemultiplier Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

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:

  • number: This value is used to specify the multiplier used to adjust the font size due to changes in scriptlevel.

The example below illustrates the MathML scriptsizemultiplier attribute:

Example:

HTML




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

  • Firefox


Last Updated : 18 Nov, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads