← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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