← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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