Skip to content
doubtly

2 answers

Use the anchor tag <a> with the href attribute.

<a href="https://www.example.com">Visit Example</a>

The href attribute holds the address to go to, and the text between the tags is the clickable link text.

Other common uses:

<a href="about.html">About us</a>
<a href="#contact">Go to contact section</a>
<a href="mailto:info@example.com">Email us</a>
<a href="page.html" target="_blank">Open in new tab</a>

These link to another page of the same site, a section of the same page (an element with id="contact"), an email address, and open a page in a new tab.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.