← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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