← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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