← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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