← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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