← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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