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