Skip to content
Related Articles

Related Articles

Improve Article

HTML5 MathML separator Attribute

  • Last Updated : 18 Nov, 2020

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

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :