← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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