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