Last updated
Links
Definition: A link (the <a> "anchor" tag) lets users click to go to another page or website. Links are what make the web a web.
Basic link
<a href="https://example.com">Visit Example</a>
The href attribute holds the destination address. The text between the tags is what the user clicks.
Open in a new tab
<a href="https://example.com" target="_blank">New tab</a>
target="_blank" opens the link in a new browser tab.
What is an attribute?
An attribute is extra information inside the opening tag, written as name="value". href and target are both attributes of the link.
💡 Tip: always write the full address including https:// for links to other websites.
Try it Yourself
Output
Ad · responsive