← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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