← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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