← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 786 · 40 questions
TalentJR

Code tip (Read the code like a browser): Find the topic of the question: tags, headings, lists, links, images, structure or comments. Read the code line by line, the way a browser would. Count carefully: tags opened and closed, items, lines, paragraphs.

NameDateTime takenScore ___ / 40
  1. 1.🔗 Where does this link open?
    <a href="contact.html">Visit the site</a>
    (a) in a new tab (b) in the same tab
  2. 2.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) map.png (b) Birthday cake (c) width (d) Map of India
  3. 3.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  4. 4.🔗 Which words do you click on?
    <a href="about.html">Take the quiz</a>
    (a) Take the quiz (b) href (c) about.html (d) Play games
  5. 5.🔠 How many heading levels does HTML have? (a) 3 (b) 6 (c) 10 (d) 4
  6. 6.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Visit the site</a>
    (a) in a new tab (b) in the same tab
  7. 7.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  8. 8.🔗 Which words do you click on?
    <a href="art.html">Maths fun</a>
    (a) art.html (b) Maths fun (c) Art corner (d) href
  9. 9.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <table> (d) <img>
  10. 10.🔗 Where does this link open?
    <a href="art.html" target="_blank">About us</a>
    (a) in the same tab (b) in a new tab
  11. 11.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) My drawings (c) body (d) I like to read.
  12. 12.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  13. 13.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  14. 14.True or false: in <img>, alt sets how tall it is. (a) True (b) False
  15. 15.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
  16. 16.🔗 Which words do you click on?
    <a href="news.html">Art corner</a>
    (a) School news (b) news.html (c) href (d) Art corner
  17. 17.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  18. 18.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  19. 19.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
  20. 20.🔗 Which words do you click on?
    <a href="contact.html">Visit the site</a>
    (a) Visit the site (b) contact.html (c) href (d) Maths fun
  21. 21.True or false: <p> goes in the head. (a) False (b) True
  22. 22.True or false: <meta charset="utf-8"> goes in the body. (a) True (b) False
  23. 23.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
  24. 24.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  25. 25.True or false: <h1> goes in the head. (a) True (b) False
  26. 26.Which of these is true of a code editor? (a) answers page requests (b) turns HTML into a page (c) sends pages over the net (d) saves our .html files
  27. 27.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h2>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="350">
    (a) width (b) bus.jpg (c) An old fort (d) Our school bus
  29. 29.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
  30. 30.True or false: <ul> is an unordered list. (a) True (b) False
  31. 31.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
  32. 32.💬 Does the browser show comments on the page? (a) No (b) Yes
  33. 33.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  34. 34.🔗 Which address opens when you click this link?
    <a href="quiz.html">Maths fun</a>
    (a) games.html (b) quiz.html (c) Maths fun (d) about.html
  35. 35.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  36. 36.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
  37. 37.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h5> (d) <h1>
  38. 38.True or false: <a> goes in the head. (a) False (b) True
  39. 39.🔗 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
  40. 40.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers

Answer key

  1. in the same tab
  2. Map of India
  3. Yes
  4. Take the quiz
  5. 6
  6. in a new tab
  7. in the body
  8. Maths fun
  9. <meta charset="utf-8">
  10. in a new tab
  11. My drawings
  12. an opening tag
  13. in the head
  14. False
  15. 3
  16. Art corner
  17. True
  18. No
  19. <h6>
  20. Visit the site
  21. False
  22. False
  23. <h6>
  24. has a closing tag
  25. False
  26. saves our .html files
  27. <h6>
  28. Our school bus
  29. on the browser tab
  30. True
  31. a code editor
  32. No
  33. a closing tag
  34. quiz.html
  35. <li>
  36. <ul>
  37. <h5>
  38. False
  39. in a new tab
  40. bullets

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