← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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