← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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