← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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