← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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