← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 592 · 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.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
      <li>Jamun</li>
    </ol>
  2. 2.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
  3. 3.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <p>I love mangoes.</p>
    (a) Hello, world! (b) I love mangoes. (c) The red kite
  4. 4.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ul> (d) <ol>
  5. 5.True or false: <ul> is an unordered list. (a) True (b) False
  6. 6.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <p>Hello, world!</p>
    (a) Hello, world! (b) Cricket is fun. (c) Our school trip
  7. 7.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to describe the image (c) to colour it (d) to load it faster
  8. 8.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Stars shine<br>Roses are red<br>Sky is blue</p>
  9. 9.🔗 Which words do you click on?
    <a href="https://example.com">Contact us</a>
    (a) https://example.com (b) Contact us (c) href (d) Visit the site
  10. 10.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
  11. 11.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="100">
  12. 12.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Mango</li>
    </ul>
  13. 13.Which of these is true of a code editor? (a) turns HTML into a page (b) stores a website’s files (c) saves our .html files (d) has an address bar
  14. 14.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>The red kite</p>
    <h3>Good morning!</h3>
    <p>Rain today</p>
    <p>I love mangoes.</p>
  15. 15.📄 Can HTML on its own count button clicks? (a) Yes (b) No
  16. 16.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>My pets</p>
    <h2>The red kite</h2>
  17. 17.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Rivers flow<br>Kites fly high<br>Sky is blue<br>Roses are red</p>
  18. 18.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
  19. 19.🏷️ HTML marks up text using ___. (a) pixels (b) keys (c) wires (d) tags
  20. 20.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Stars shine<br>Sky is blue</p>
  21. 21.🖼️ Which picture file does the browser load?
    <img src="dog.jpg" alt="A happy dog" width="300">
    (a) bus.jpg (b) A happy dog (c) dog.jpg (d) moon.png
  22. 22.🔍 Which is the odd one out? (a) is where we type code (b) turns HTML into a page (c) shows pages from the web (d) has an address bar
  23. 23.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>Good morning!</h2>
    <h2>Cricket is fun.</h2>
    <p>Fun facts</p>
  24. 24.🔍 One closing tag is missing. Which one?
    <h3>My pets</h3>
    <p>Hello, world!
    <u>I love mangoes.</u>
    (a) </u> (b) </em> (c) </h3> (d) </p>
  25. 25.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a dot . (d) a hash #
  26. 26.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Cricket is fun.</h2>
    <p>Our school trip</p>
    <p>Fun facts</p>
    <p>My pets</p>
  27. 27.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
  28. 28.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>Fun facts</p> -->
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
  29. 29.📋 What number does the browser show next to “Banana”?
    <ol>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
  30. 30.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    (a) The red kite (b) Our school trip (c) Good morning! (d) Cricket is fun.
  31. 31.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
  32. 32.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  33. 33.🔗 Which address opens when you click this link?
    <a href="maths.html">Art corner</a>
    (a) news.html (b) art.html (c) maths.html (d) Art corner
  34. 34.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
  35. 35.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
  36. 36.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Birds sing<br>Roses are red<br>Rivers flow<br>Kites fly high</p>
  37. 37.🌐 Which one stores a website’s files? (a) a web browser (b) a web server (c) a code editor
  38. 38.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <!-- <p>Rain today</p> -->
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>The red kite</p>
    <p>My best friend</p>
    <p>My pets</p>
    (a) My best friend (b) My pets (c) The red kite (d) Hello, world!

Answer key

  1. 3
  2. a paragraph
  3. Hello, world!
  4. <ul>
  5. True
  6. Cricket is fun.
  7. to describe the image
  8. 4
  9. Contact us
  10. 200
  11. 100
  12. 3
  13. saves our .html files
  14. 2
  15. No
  16. 2
  17. 5
  18. 6
  19. tags
  20. 3
  21. dog.jpg
  22. is where we type code
  23. 2
  24. </p>
  25. a slash /
  26. 4
  27. a web browser
  28. 2
  29. 4
  30. Good morning!
  31. a web server
  32. has a closing tag
  33. maths.html
  34. <a>
  35. a web browser
  36. 5
  37. a web server
  38. <ol>
  39. 1
  40. Hello, world!

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