← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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