Open In App

HTML5 MathML accent Attribute

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

The MathML accent attribute in HTML5 is used to specify whether an operator should be treated as an accent. The possible values of this attribute are true or false. This attribute can be used with <mo>, <mover> and <munderover> MathML tags.

Syntax:

<element accent="true | false">

Attributes Value: This attribute has two values as mentioned above and described below:

  • true: This value means the operator should be treated as an accent.
  • false: This value means the operator should not be treated as an accent.

The example below illustrates the MathML accent attribute:

Example:

HTML




<!DOCTYPE html>
<html>
  
<body style="text-align:center;">
  
    <h1 style="color:green">
        GeeksforGeeks
    </h1>
  
    <h3>
        HTML5 MathML accent Attribute
    </h3>
  
    <math>
        <mrow>
            <mrow>
                <msup>
                    <mi>x</mi>
                    <mn>2</mn>
                </msup>
                <mo accent="true">+</mo>
                <msup>
                    <mi>y</mi>
                    <mn>2</mn>
                </msup>
            </mrow>
            <mo accent="true">=</mo>
            <msup>
                <mi>z</mi>
                <mn>2</mn>
            </msup>
        </mrow>
    </math>
</body>
  
</html>


Output:

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

  • Firefox


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

Similar Reads