← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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