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