a hyperlink in an HTML page, use the <a> and </a> tags
2 answers
codelikepro
· 19 Aug 2022
Report
Was this answer helpful?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
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?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
Your answer
Log in or create a free account to answer this question.