← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 339 · 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.🔗 Which address opens when you click this link?
    <a href="https://example.com">Maths fun</a>
    (a) Maths fun (b) maths.html (c) https://example.com (d) art.html
  2. 2.🌐 Which one stores a website’s files? (a) a web browser (b) a code editor (c) a web server
  3. 3.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="100">
    (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png
  4. 4.💬 How does an HTML comment end? (a) >> (b) // (c) --> (d) */
  5. 5.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) quiz.html (b) about.html (c) Play games (d) games.html
  6. 6.🔍 One closing tag is missing. Which one?
    <strong>I love mangoes.</strong>
    <h1>My pets
    <p>My best friend</p>
    (a) </strong> (b) </h1> (c) </p> (d) </u>
  7. 7.🔗 Which words do you click on?
    <a href="maths.html">Take the quiz</a>
    (a) Take the quiz (b) href (c) maths.html (d) Play games
  8. 8.🔗 Which address opens when you click this link?
    <a href="quiz.html">Contact us</a>
    (a) about.html (b) Contact us (c) quiz.html (d) games.html
  9. 9.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <link about.html>
  10. 10.Which of these is true of a web browser? (a) turns HTML into a page (b) sends pages over the net (c) hosts websites online (d) saves our .html files
  11. 11.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
  12. 12.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  13. 13.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h3>? (a) <h5> (b) <h2> (c) <h3> (d) <h6>
  14. 14.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h4> (c) <h5> (d) <h2>
  15. 15.True or false: <li> goes inside ul or ol. (a) False (b) True
  16. 16.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
  17. 17.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) in a big heading (d) nowhere
  18. 18.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>Rain today</p>
  19. 19.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  20. 20.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.True or false: <p> has a closing tag. (a) False (b) True
  22. 22.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
  23. 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
  24. 24.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <h2>Good morning!</h2>
  25. 25.📋 What number does the browser show next to “Mango”?
    <ol start="9">
      <li>Litchi</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
  26. 26.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Cricket is fun. (c) Our school trip (d) Hello, world!
  27. 27.True or false: a web browser saves our .html files. (a) True (b) False
  28. 28.🌐 Which one opens web pages for us? (a) a code editor (b) a web browser (c) a web server
  29. 29.True or false: a web server saves our .html files. (a) True (b) False
  30. 30.💬 Does the browser show comments on the page? (a) Yes (b) No
  31. 31.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
  32. 32.True or false: <li> is an empty tag. (a) False (b) True
  33. 33.🏷️ HTML marks up text using ___. (a) wires (b) tags (c) pixels (d) keys
  34. 34.🔗 Which address opens when you click this link?
    <a href="art.html">Visit the site</a>
    (a) Visit the site (b) quiz.html (c) art.html (d) news.html
  35. 35.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to load it faster (c) to make it bigger (d) to colour it
  36. 36.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  37. 37.📄 Can HTML on its own keep a high score? (a) Yes (b) No
  38. 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
  39. 39.🔗 Which words do you click on?
    <a href="quiz.html">Visit the site</a>
    (a) Maths fun (b) quiz.html (c) href (d) Visit the site
  40. 40.True or false: HTML on its own can keep a high score. (a) False (b) True

Answer key

  1. https://example.com
  2. a web server
  3. moon.png
  4. -->
  5. quiz.html
  6. </h1>
  7. Take the quiz
  8. quiz.html
  9. <a href="about.html">
  10. turns HTML into a page
  11. <h2>
  12. No
  13. <h6>
  14. <h2>
  15. True
  16. <a>
  17. on the browser tab
  18. 4
  19. a closing tag
  20. a closing tag
  21. True
  22. <h1>
  23. <h2>
  24. 2
  25. 11
  26. Hello, world!
  27. False
  28. a web browser
  29. False
  30. No
  31. False
  32. False
  33. tags
  34. art.html
  35. to describe the image
  36. a closing tag
  37. No
  38. a slash /
  39. Visit the site
  40. False

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