← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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