← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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