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