← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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