← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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