← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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