← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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