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