← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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