← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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