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