← Links with a href lesson New set →

HTML Worksheet: Links a href

HTML and CSS lesson 6: Links with a href · Set 834 · 40 questions
TalentJR

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

Answer key

  1. <a>
  2. School news
  3. Art corner
  4. Take the quiz
  5. https://example.com
  6. opens it in a new tab
  7. in a new tab
  8. Visit the site
  9. maths.html
  10. Visit the site
  11. contact.html
  12. in the same tab
  13. contact.html
  14. in a new tab
  15. href
  16. in the same tab
  17. in the same tab
  18. about.html
  19. Maths fun
  20. in the same tab
  21. School news
  22. in the same tab
  23. About us
  24. in the same tab
  25. About us
  26. Visit the site
  27. in the same tab
  28. Take the quiz
  29. <a href="about.html">
  30. games.html
  31. Play games
  32. contact.html
  33. contact.html
  34. Maths fun
  35. about.html
  36. in the same tab
  37. in a new tab
  38. Visit the site
  39. in a new tab
  40. in a new tab

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids