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:

  • 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">
            w3wiki
        </h1>
  
        <h3>HTML5 MathML href attribute</h3>
  
        <math>
            <math>
                <mi mathvariant="bold" href=
                    "https://www.w3wiki.net/">
                    w3wiki
                </mi>
  
                <br>
            </math>
            <math>
                <mi mathvariant="italic">
                    A Computer Science
                    Portal for Beginner
                </mi>
            </math>
        </math>
    </center>
</body>
  
</html>


Output:

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

  • Firefox