Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML5 MathML href Attribute

  • Last Updated : 20 Nov, 2020

The href attribute is used to specify the URL of the linked document. This attribute is accepted by all the MathML tags.

Syntax:

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

<element href="valid URL">

Attribute Value:

  • href: This attribute is used to specify the URL of the linked document.

Below example illustrate the href attribute in HTML5 MathML:



Example:




<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML5 MathML href attribute
    </title>
      
    <style>
        mi {
            font-size: 25px;
        }
    </style>
</head>
  
<body>
    <center>
        <h1 style="color:green">
            GeeksforGeeks
        </h1>
  
        <h3>HTML5 MathML href attribute</h3>
  
        <math>
            <math>
                <mi mathvariant="bold" href=
                    "https://www.geeksforgeeks.org/">
                    GeeksforGeeks
                </mi>
  
                <br>
            </math>
            <math>
                <mi mathvariant="italic">
                    A Computer Science
                    Portal for Geeks
                </mi>
            </math>
        </math>
    </center>
</body>
  
</html>

Output:

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

  • Firefox



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!