html · level 1 · unit 3 · lesson 1
- meet it
- guess first
- your turn
- fix it
- nailed it
Tap a green word if you get lost.
meet it
<a> makes a , and href says where it goes.
A link is something you can click to jump to another page. Make one with the <a> tag. The words between its tags are what people see and click.
The href attribute holds the address to go to. The address of a web page is called a , like https://example.com. Without href, the link goes nowhere.
An <a> can sit inside a paragraph, like <strong> can, so a link flows along with your sentence.
<p>I love <a href="https://example.com/cats">cats</a>.</p> Press show my page to see it here.
Browsers show links in blue with a line underneath, so people know they can click.
guess first
What will people see and click?
Guess before you run it. Wrong guesses are how you learn, and nothing is marked.
<a href="https://example.com/recipes">Pancake recipes</a>
your turn
Your turn. Link to your favourite animal.
Type your favourite animal in the blank, wrapped in an <a> tag. Give it href="https://example.com/animals" so the link has somewhere to go.
Press show my page to see it here.
- the link goes to the animals pagenot checked yet
- the link has words to clicknot checked yet
fix it
The link does nothing. Can you fix it?
Press show my page to see it here.
- the link goes to the pizza pagenot checked yet
- The words are not blue, and nothing happens when you click. What makes a link go somewhere?
- Look closely at the attribute's name. Is it spelt the right way?
- Change
herftohref, then press run.
nailed it
you joined the web together. :D
<a>makes a link people can click.hrefholds the URL the link goes to.- The words between the tags are what people see.
new words in your collection
- link
- URL
This lesson isn’t saved. A free account remembers every lesson you finish.