HTML Links
A link lets a visitor go somewhere else. HTML creates links with the <a> tag. The href attribute tells the browser where to go. The words between <a> and </a> are the clickable part. For example: <a href="https://example.com">Visit Example</a>. Links can point to another website, another page in your own site, an email address, a phone number, or a place on the same page. A good link tells the visitor what will happen when they click it.
Why this matters
- ·Links connect pages and websites.
- ·Clear link text helps visitors understand the destination.
- ·The href attribute stores the destination.
Common mistakes
- ·"Click here" gives little information when many links are read together.
- ·A broken href sends visitors to the wrong place.
- ·Opening new tabs without a clear reason can surprise users.
Advertisement
Your codeHTML
Live preview
Advertisement
Frequently asked questions
A hyperlink.
Advertisement
Practice questions
Question 1
Create a link to your About page.
Your codeHTML
Live preview
Question 2
Create an external link to a website.
Your codeHTML
Live preview
Quick check
Just for this topic answer honestly, then check yourself.
1 / 3
