← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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