Open In App

HTML5 MathML href Attribute

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:

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:


Article Tags :