← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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