Open In App

HTML5 MathML href Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

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

Syntax:

<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


Last Updated : 20 Nov, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads