Student-friendly HTML, CSS, and JavaScript reference with examples
The <a> (anchor) element creates clickable links. Links are what make the web connected.
<a href="https://google.com">Go to Google</a>
href attribute specifies where the link goes Different types of links:
<!-- External link -->
<a href="https://example.com">Visit Example</a>
<!-- Link to another page on your site -->
<a href="/about">About Us</a>
<!-- Email link -->
<a href="mailto:hello@example.com">Email us</a>
The href attribute is required for links to work.