← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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