← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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