← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 139 · 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 heading shows the BIGGEST text: <h1>, <h3>, <h2> or <h4>? (a) <h3> (b) <h2> (c) <h1> (d) <h4>
  2. 2.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  3. 3.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
  4. 4.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) <b/> (d) </b>
  5. 5.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  6. 6.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
    </ol>
  7. 7.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h4> or <h2>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
  8. 8.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes a list (d) makes text bold
  9. 9.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h2>
  10. 10.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>The red kite</h2>
    <p>Hello, world!</p>
    <p>The red kite</p>
    <p>Fun facts</p>
  11. 11.True or false: <img> goes in the body. (a) False (b) True
  12. 12.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
  13. 13.True or false: <meta> is an empty tag. (a) True (b) False
  14. 14.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>My best friend</p>
    <p>Rain today</p>
    <p>The red kite</p>
    <h2>Cricket is fun.</h2>
    <p>My pets</p>
  15. 15.📋 Which list suits a shopping list in any order? (a) <ol> (b) <br> (c) <hr> (d) <ul>
  16. 16.🔍 One closing tag is missing. Which one?
    <em>Cricket is fun.</em>
    <i>Hello, world!
    <h3>I love mangoes.</h3>
    (a) </em> (b) </h1> (c) </i> (d) </h3>
  17. 17.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>The red kite</h2>
    <p>Rain today</p>
  18. 18.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>Our school trip</p>
    <p>My best friend</p>
    <!-- <p>Hello, world!</p> -->
    (a) Hello, world! (b) My best friend (c) Good morning! (d) Our school trip
  19. 19.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h5>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
  20. 20.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Orange</li>
    </ul>
  21. 21.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  22. 22.True or false: <p> is an empty tag. (a) True (b) False
  23. 23.True or false: a web browser turns HTML into a page. (a) False (b) True
  24. 24.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    (a) Rain today (b) Hello, world! (c) Good morning!
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Fun facts</p>
    <p>Good morning!</p>
  26. 26.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Planets (b) We won by 5 runs. (c) index.html (d) Class 7 Blog
  27. 27.Which of these is an opening tag? (a) </h1> (b) <p> (c) </title> (d) </b>
  28. 28.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    <p>The red kite</p>
  29. 29.🔍 One closing tag is missing. Which one?
    <h3>Fun facts
    <p>Hello, world!</p>
    <em>I love mangoes.</em>
    (a) </strong> (b) </em> (c) </p> (d) </h3>
  30. 30.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>My best friend</p>
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <h3>My pets</h3>
  31. 31.🔍 One closing tag is missing. Which one?
    <h2>Rain today</h2>
    <h3>My best friend
    <p>Hello, world!</p>
    (a) </h3> (b) </b> (c) </h2> (d) </p>
  32. 32.🔗 Which address opens when you click this link?
    <a href="quiz.html">Visit the site</a>
    (a) quiz.html (b) about.html (c) games.html (d) Visit the site
  33. 33.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
  34. 34.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) </h2> (d) <h2/>
  35. 35.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
  36. 36.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  37. 37.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Roses are red<br>Kites fly high</p>
  38. 38.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h1>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
  39. 39.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Sky is blue<br>Kites fly high</p>
  40. 40.🌐 Which one saves our .html files? (a) a code editor (b) a web browser (c) a web server

Answer key

  1. <h1>
  2. Yes
  3. Yes
  4. </b>
  5. <ol>
  6. 2
  7. <h6>
  8. starts a new line
  9. <h6>
  10. 4
  11. True
  12. <ul>
  13. True
  14. 5
  15. <ul>
  16. </i>
  17. 2
  18. Hello, world!
  19. <h1>
  20. 3
  21. an opening tag
  22. False
  23. True
  24. Rain today
  25. 2
  26. Class 7 Blog
  27. <p>
  28. 3
  29. </h3>
  30. 2
  31. </h3>
  32. quiz.html
  33. structure
  34. </h2>
  35. </p>
  36. No
  37. 3
  38. <h5>
  39. 3
  40. a code editor

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