← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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