HTML Worksheet: Links a href
Code tip (Where and what): A link is <a href="address">words to click</a>. href holds where it goes; the text between the tags is what you click. target="_blank" opens the link in a new tab.
NameDateTime takenScore ___ / 40
- 1.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) src (d) id
- 2.🔗 What does target="_blank" do to a link? (a) makes it blank (b) makes it bold (c) opens it in a new tab (d) hides the link
-
3.🔗 Which address opens when you click this link?
<a href="contact.html">Take the quiz</a> (a) maths.html (b) https://example.com (c) Take the quiz (d) contact.html -
4.🔗 Which words do you click on?
<a href="https://example.com">Visit the site</a> (a) href (b) https://example.com (c) Maths fun (d) Visit the site -
5.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) about.html (b) Take the quiz (c) href (d) School news -
6.🔗 Which words do you click on?
<a href="contact.html">Art corner</a> (a) href (b) contact.html (c) Art corner (d) School news -
7.🔗 Where does this link open?
<a href="maths.html" target="_blank">Take the quiz</a> (a) in a new tab (b) in the same tab -
8.🔗 Which words do you click on?
<a href="about.html">Art corner</a> (a) about.html (b) href (c) School news (d) Art corner - 9.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <link> (d) <p>
- 10.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a href="about.html">
-
11.🔗 Where does this link open?
<a href="about.html" target="_blank">Maths fun</a> (a) in the same tab (b) in a new tab -
12.🔗 Which words do you click on?
<a href="contact.html">Contact us</a> (a) Visit the site (b) Contact us (c) href (d) contact.html -
13.🔗 Which words do you click on?
<a href="quiz.html">Contact us</a> (a) quiz.html (b) Contact us (c) href (d) Visit the site -
14.🔗 Which address opens when you click this link?
<a href="contact.html">Art corner</a> (a) maths.html (b) contact.html (c) https://example.com (d) Art corner -
15.🔗 Where does this link open?
<a href="games.html">Play games</a> (a) in a new tab (b) in the same tab -
16.🔗 Where does this link open?
<a href="games.html">Visit the site</a> (a) in a new tab (b) in the same tab -
17.🔗 Where does this link open?
<a href="games.html" target="_blank">School news</a> (a) in a new tab (b) in the same tab -
18.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) art.html (b) news.html (c) School news (d) maths.html -
19.🔗 Where does this link open?
<a href="https://example.com" target="_blank">Maths fun</a> (a) in the same tab (b) in a new tab -
20.🔗 Which address opens when you click this link?
<a href="news.html">Visit the site</a> (a) news.html (b) games.html (c) quiz.html (d) Visit the site -
21.🔗 Which address opens when you click this link?
<a href="games.html">Take the quiz</a> (a) contact.html (b) about.html (c) Take the quiz (d) games.html -
22.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) About us (b) quiz.html (c) news.html (d) games.html -
23.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) quiz.html (b) Contact us (c) art.html (d) news.html -
24.🔗 Which words do you click on?
<a href="quiz.html">Art corner</a> (a) quiz.html (b) School news (c) href (d) Art corner -
25.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) Art corner (b) School news (c) games.html (d) href -
26.🔗 Which words do you click on?
<a href="contact.html">School news</a> (a) contact.html (b) School news (c) Take the quiz (d) href -
27.🔗 Where does this link open?
<a href="games.html" target="_blank">Take the quiz</a> (a) in a new tab (b) in the same tab -
28.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) about.html (b) games.html (c) contact.html (d) Play games -
29.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Contact us</a> (a) in the same tab (b) in a new tab -
30.🔗 Where does this link open?
<a href="art.html" target="_blank">Visit the site</a> (a) in a new tab (b) in the same tab -
31.🔗 Where does this link open?
<a href="art.html">Visit the site</a> (a) in a new tab (b) in the same tab -
32.🔗 Which words do you click on?
<a href="https://example.com">Play games</a> (a) About us (b) href (c) https://example.com (d) Play games -
33.🔗 Which address opens when you click this link?
<a href="art.html">Art corner</a> (a) Art corner (b) quiz.html (c) art.html (d) news.html -
34.🔗 Which words do you click on?
<a href="contact.html">Maths fun</a> (a) href (b) contact.html (c) Maths fun (d) Art corner -
35.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Take the quiz (b) Play games (c) games.html (d) href -
36.🔗 Where does this link open?
<a href="maths.html" target="_blank">Art corner</a> (a) in a new tab (b) in the same tab -
37.🔗 Which words do you click on?
<a href="art.html">Visit the site</a> (a) Visit the site (b) href (c) art.html (d) Maths fun -
38.🔗 Which words do you click on?
<a href="maths.html">Play games</a> (a) maths.html (b) href (c) Play games (d) About us -
39.🔗 Where does this link open?
<a href="https://example.com">Art corner</a> (a) in the same tab (b) in a new tab -
40.🔗 Where does this link open?
<a href="news.html" target="_blank">Take the quiz</a> (a) in a new tab (b) in the same tab
Answer key
- href
- opens it in a new tab
- contact.html
- Visit the site
- School news
- Art corner
- in a new tab
- Art corner
- <a>
- <a href="about.html">
- in a new tab
- Contact us
- Contact us
- contact.html
- in the same tab
- in the same tab
- in a new tab
- maths.html
- in a new tab
- news.html
- games.html
- news.html
- art.html
- Art corner
- Art corner
- School news
- in a new tab
- games.html
- in a new tab
- in a new tab
- in the same tab
- Play games
- art.html
- Maths fun
- Take the quiz
- in a new tab
- Visit the site
- Play games
- in the same tab
- in a new tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids