← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 550 · 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>Good morning!</p> -->
    <p>I love mangoes.</p>
  2. 2.True or false: <p> is an empty tag. (a) True (b) False
  3. 3.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) High Tech (c) HyperText (d) Hot Tags
  4. 4.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Guava</li>
    </ol>
  5. 5.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  6. 6.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
  7. 7.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) Easy snacks (c) index.html (d) Art Gallery
  8. 8.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ol> (d) <ul>
  9. 9.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
  10. 10.📄 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>Thanks for visiting.</p>
    </body>
    </html>
    (a) My drawings (b) Class 7 Blog (c) body (d) Thanks for visiting.
  11. 11.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h4>? (a) <h2> (b) <h6> (c) <h4> (d) <h5>
  12. 12.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow<br>Sky is blue<br>Birds sing<br>Roses are red</p>
  13. 13.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    (a) My pets (b) Hello, world! (c) Our school trip
  14. 14.True or false: <ul> is an ordered list. (a) False (b) True
  15. 15.📄 Which part holds everything you see on the page? (a) the doctype (b) the body (c) the head (d) the title
  16. 16.🔠 How many headings are in this code?
    <h1>Our school trip</h1>
    <h4>My best friend</h4>
    <p>My best friend</p>
  17. 17.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
  18. 18.📋 What number does the browser show next to “Papaya”?
    <ol start="3">
      <li>Guava</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Mango</li>
    </ol>
  19. 19.True or false: <ul> has a closing tag. (a) True (b) False
  20. 20.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Banana</li>
      <li>Guava</li>
    </ul>
  21. 21.Which of these has a closing tag? (a) <img> (b) <title> (c) <br> (d) <input>
  22. 22.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  23. 23.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
  24. 24.True or false: in <img>, width sets how wide it is. (a) False (b) True
  25. 25.🏷️ Every HTML tag starts with which sign? (a) { (b) < (c) ( (d) [
  26. 26.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <html> (c) </html> (d) <!DOCTYPE html>
  27. 27.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to leave notes (d) to add colour
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="250">
    (a) Map of India (b) map.png (c) width (d) Birthday cake
  29. 29.True or false: <style> goes in the body. (a) False (b) True
  30. 30.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
  31. 31.📄 Can HTML on its own make a form? (a) No (b) Yes
  32. 32.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
  33. 33.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  34. 34.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) sends pages over the net (d) is where we type code
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Kites fly high<br>Birds sing<br>Rivers flow</p>
  36. 36.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    (a) Rain today (b) Good morning! (c) Cricket is fun. (d) The red kite
  37. 37.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    <p>Rain today</p>
    <p>My pets</p>
  38. 38.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>My pets</p> -->
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
  39. 39.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h2> or <h4>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
  40. 40.🖼️ Which attribute of <img> shows if the image fails? (a) height (b) width (c) src (d) alt

Answer key

  1. 1
  2. False
  3. HyperText
  4. 5
  5. in the head
  6. <h1>
  7. Art Gallery
  8. <ol>
  9. a code editor
  10. My drawings
  11. <h2>
  12. 5
  13. Hello, world!
  14. False
  15. the body
  16. 2
  17. a web browser
  18. 6
  19. True
  20. 3
  21. <title>
  22. has a closing tag
  23. 1
  24. True
  25. <
  26. <!DOCTYPE html>
  27. to leave notes
  28. Map of India
  29. False
  30. in the body
  31. Yes
  32. <h1>
  33. Yes
  34. is where we type code
  35. 5
  36. Good morning!
  37. 3
  38. 2
  39. <h5>
  40. alt

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