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