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