Open In App

HTML5 MathML href Attribute

Last Updated : 20 Nov, 2020
Comments
Improve
Suggest changes
Like Article
Like
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


Next Article

Similar Reads