← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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