← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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