← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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