href
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
The href
global attribute creates a hyperlink on the MathML element pointing to the specified URL.
Example
The first equation links to the Wikipedia article about the mass-energy equivalence. The square root part of the second equation is a link to the SageMath calculation.
Note:
You should avoid nesting MathML elements with the href
attributes, just like elements, as is will lead to user confusion and accessibility issues.
Syntax
Values
URL
-
The URL to which the hyperlink points.
Specifications
The href
attribute is not defined in any browser-oriented specification but you can find a description in MathML 4.
Browser compatibility
See also
- All global attributes.