← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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