← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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