← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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