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