← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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