← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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