← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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