Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML5 | MathML <msub> Tag

  • Last Updated : 22 Aug, 2021

The MathML <msub> tag in HTML is used to print the base power on any expression. 


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

<msub> Contents </msub>

Attributes: This tag accepts some attributes which are listed below:  

  • class|id|style: This attribute holds the style of the contents.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • href: This attribute holds any hyperlink to a specified URL.
  • mathcolor: This attribute holds the color of the math expressions.
  • subscriptshift: This attribute defines the minimum space that shift the subscript below the baseline of the expression.

Below example illustrates the MathML <msub> tag in HTML5:


!DOCTYPE html>
    <title>HTML5 MathML msub tag</title>
        <h1 style="color:green">
        <h3>HTML5 MathML <msub> tag</h3>
            <mfenced open="(" close=")" separators="">
                    <msub subscriptshift="5px">
                    <msub subscriptshift="5px">


Supported Browsers: The browsers supported by HTML5 MathML <msub> tag are listed below:  

  • Firefox
  • Safari


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!