← Links with a href lesson New set →

HTML Worksheet: Links a href

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

Answer key

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

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