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