← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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