← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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