← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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