← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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