← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 324 · 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 paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Fun facts</p> -->
    <p>I love mangoes.</p>
  2. 2.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  3. 3.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) body (c) Easy snacks (d) Space Facts
  4. 4.Which of these is a closing tag? (a) <body> (b) <b> (c) <h1> (d) </body>
  5. 5.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
  6. 6.💬 How does an HTML comment start? (a) # (b) // (c) /* (d) <!--
  7. 7.🔍 One closing tag is missing. Which one?
    <h1>Cricket is fun.</h1>
    <u>I love mangoes.
    <i>My pets</i>
    (a) </p> (b) </i> (c) </u> (d) </h1>
  8. 8.True or false: in <img>, width tells which image to load. (a) False (b) True
  9. 9.🔗 Which address opens when you click this link?
    <a href="about.html">Contact us</a>
    (a) about.html (b) Contact us (c) contact.html (d) https://example.com
  10. 10.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h1>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
  11. 11.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <ol> (d) <hr>
  12. 12.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Mango</li>
    </ol>
    (a) numbers (b) bullets
  13. 13.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="400">
  14. 14.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
  15. 15.True or false: a web browser hosts websites online. (a) False (b) True
  16. 16.🏷️ Which is the closing tag for <i>? (a) </i> (b) <i/> (c) <i> (d) <\i>
  17. 17.🔠 Are headings shown in bold by default? (a) Yes (b) No
  18. 18.🔗 Where does this link open?
    <a href="news.html">Visit the site</a>
    (a) in a new tab (b) in the same tab
  19. 19.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="200">
    (a) An old fort (b) Our school bus (c) width (d) bus.jpg
  20. 20.🌐 Which one hosts websites online? (a) a web browser (b) a code editor (c) a web server
  21. 21.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="150">
    (a) map.png (b) tiger.jpg (c) A tiger asleep (d) kite.png
  22. 22.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) nowhere (d) at the bottom
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) Birthday cake (b) cake.jpg (c) A happy dog (d) width
  24. 24.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  25. 25.📋 Which list tag is an ordered list? (a) <li> (b) <ol> (c) <ul>
  26. 26.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h3> (d) <h2>
  27. 27.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
  28. 28.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Planets (c) body (d) Art Gallery
  29. 29.🔍 One closing tag is missing. Which one?
    <em>My pets</em>
    <i>Rain today
    <strong>Good morning!</strong>
    (a) </strong> (b) </p> (c) </em> (d) </i>
  30. 30.📋 Which list tag lists steps in order? (a) <li> (b) <ul> (c) <ol>
  31. 31.True or false: HTML on its own cannot show paragraphs. (a) False (b) True
  32. 32.🔍 One closing tag is missing. Which one?
    <i>Hello, world!
    <em>Cricket is fun.</em>
    <h2>My best friend</h2>
    (a) </em> (b) </h2> (c) </u> (d) </i>
  33. 33.True or false: <li> is an unordered list. (a) True (b) False
  34. 34.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) Art corner (b) games.html (c) href (d) Maths fun
  35. 35.Which of these is a closing tag? (a) <body> (b) </li> (c) <h1> (d) <li>
  36. 36.True or false: <ul> is one item of a list. (a) True (b) False
  37. 37.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  38. 38.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <h1> (d) <p>
  39. 39.🔗 Where does this link open?
    <a href="https://example.com" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  40. 40.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) ( (d) <

Answer key

  1. 2
  2. has a closing tag
  3. Easy snacks
  4. </body>
  5. <h6>
  6. <!--
  7. </u>
  8. False
  9. about.html
  10. <h1>
  11. <ol>
  12. numbers
  13. 400
  14. a code editor
  15. False
  16. </i>
  17. Yes
  18. in the same tab
  19. Our school bus
  20. a web server
  21. tiger.jpg
  22. on the browser tab
  23. Birthday cake
  24. a closing tag
  25. <ol>
  26. <h6>
  27. 1
  28. Planets
  29. </i>
  30. <ol>
  31. False
  32. </i>
  33. False
  34. Maths fun
  35. </li>
  36. False
  37. Yes
  38. <h1>
  39. in a new tab
  40. <

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