← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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