← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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