Open In App

HTML5 | MathML <ms> Tag

Improve
Improve
Like Article
Like
Save
Share
Report

The MathML <ms> tag in HTML5 is used to represent string that will represent the mathematical expression by programming languages and computer algebra systems. By default, the string expression enclosed by quotes. Left side of the expression enclosed by lquotes and right side of the expression enclosed by the rquotes. Element of the <ms> tag are not the ASCII character they are sequence character of the <mglyph> and <malignmark> tag.

Syntax:

<ms lquotes="„" rquote="“"> String Expression </ms>

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

  • class|id|style: This attribute holds the styles of the child elements.
  • dir: This attribute holds the direction two types of direction values is acceptable ltr left to right and rtl right to left.
  • href: This attribute holds any hyperlink to a specified URL.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • mathcolor: This attribute holds the color of the math expressions.
  • mathsize: This attribute holds the value of the size for the content. The possible values are small, medium and big.
  • mathvariant: This attribute holds variety of typography like font-family.
  • lquote: This attributes holds the opening quote that depends on the dir attribute and the default value is the ".

Below example will illustrates the concept of HTML5 MathML <ms> tag:

Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>HTML5 MathML ms tag</title>
</head>
  
<body style="text-align:center;">
      
    <h1 style="color:green">GeeksforGeeks</h1>
      
    <h3>HTML5 MathML <ms> Tag</h3>
      
    <math>
        <ms lquote="„" rquote="“" mathcolor="Yellow"
                mathbackground="Purple"
            A Computer Science Portal for Geeks
        </ms>
    </math>
</body>
  
</html>


Output:

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

  • Firefox

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