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