Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/mathml/global_attributes/href/index.md
6552 views
---
title: href slug: Web/MathML/Global_attributes/href browser-compat: mathml.global_attributes.href
---

{{QuickLinksWithSubPages("/en-us/docs/Web/MathML/Global_attributes")}}{{Non-standard_header}}

The href global attribute creates a hyperlink on the MathML element pointing to the specified URL.

Example

<!-- Make this math equation a link to Wikipedia's article about the Pythagorean theorem. --> <math href="https://en.wikipedia.org/wiki/Pythagorean_theorem"> <mi>c</mi> <mo>=</mo> <!-- Make this square root a link to corresponding SageMath's calculation. --> <msqrt href="https://sagecell.sagemath.org/?z=eJwrLiwq0TCOM9I2iTPSBAAeqgPO"> <msup> <mn>3</mn> <mn>2</mn> </msup> <mo>+</mo> <msup> <mn>4</mn> <mn>2</mn> </msup> </msqrt> <mo>=</mo> <mn>5</mn> </math>

Specifications

The href attribute is not defined in any browser-oriented specification but you can find a description in MathML 4.

Browser compatibility

{{Compat}}

See also