← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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