Skip to content
Related Articles

Related Articles

Improve Article

HTML5 MathML accent Attribute

  • Last Updated : 18 Nov, 2020

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

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




My Personal Notes arrow_drop_up
Recommended Articles
Page :