Open In App

HTML5 MathML separator Attribute

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

The MathML separator attribute in HTML5 is used to specify if the operator is a separator. There is no visual effect when this attribute is used, therefore this may be used for semantic purposes. This attribute is accepted by the <mo> tag.

Syntax:

<element separator="symbol">

Attribute Values: This attribute has two values as mentioned above and described below:

  • true: It specifies that the operator is a separator.
  • false: It specifies that the operator is not a separator.

The examples below illustrate the MathML separator attribute:

Example:

HTML




<!DOCTYPE html>
<html>
  
<body style="text-align:center;">
  
    <h1 style="color:green">
        GeeksforGeeks
    </h1>
      
    <h3>HTML5 MathML separator Attribute</h3>
      
    <math>
        <mfenced>
            <mo separator="true">+</mo>
            <mo>-</mo>
            <mo>/</mo>
            <mo>*</mo>
        </mfenced>
    </math>
</body>
  
</html>


Output: 

Supported Browsers: The browsers supported by HTML5 MathML separator attribute are listed below:

  • Firefox

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

Similar Reads