← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 941 · 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.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  2. 2.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
  3. 3.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ul>
    (a) numbers (b) bullets
  4. 4.🔍 One closing tag is missing. Which one?
    <u>Our school trip</u>
    <p>The red kite</p>
    <em>Fun facts
    (a) </h2> (b) </u> (c) </p> (d) </em>
  5. 5.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  6. 6.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h5> (d) <h2>
  7. 7.Which of these has a closing tag? (a) <hr> (b) <br> (c) <img> (d) <li>
  8. 8.🔠 Are headings shown in bold by default? (a) No (b) Yes
  9. 9.True or false: a web server colours code to help us. (a) True (b) False
  10. 10.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Rivers flow</p>
  11. 11.🔍 One closing tag is missing. Which one?
    <i>I love mangoes.</i>
    <b>Good morning!
    <strong>My pets</strong>
    (a) </strong> (b) </h3> (c) </b> (d) </i>
  12. 12.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
  13. 13.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
  14. 14.Which of these is an empty tag? (a) <p> (b) <h1> (c) <title> (d) <meta>
  15. 15.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) My pets (c) Hello, world! (d) Fun facts
  16. 16.📋 Does this list show bullets or numbers?
    <ol>
      <li>Papaya</li>
      <li>Orange</li>
    </ol>
    (a) numbers (b) bullets
  17. 17.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  18. 18.True or false: in <img>, width sets how wide it is. (a) True (b) False
  19. 19.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h3> (b) <h1> (c) <h6> (d) <h5>
  20. 20.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
  22. 22.🔗 Which address opens when you click this link?
    <a href="art.html">Take the quiz</a>
    (a) Take the quiz (b) art.html (c) news.html (d) quiz.html
  23. 23.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
    </ul>
  24. 24.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) All about me (c) Space Facts (d) body
  25. 25.Which of these goes in the head? (a) <img> (b) <title> (c) <a> (d) <h1>
  26. 26.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Stars shine<br>Roses are red<br>Rivers flow</p>
  27. 27.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
  28. 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  29. 29.Which of these is true of a web browser? (a) shows line numbers (b) stores a website’s files (c) shows pages from the web (d) saves our .html files
  30. 30.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a dot (c) as 5 spaces (d) as a new line
  31. 31.Which of these goes in the body? (a) <h1> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <title>
  32. 32.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="200">
    (a) bus.jpg (b) tiger.jpg (c) Our school bus (d) fort.jpg
  33. 33.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  34. 34.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <h1> (d) <br>
  35. 35.🔗 Which attribute holds the address of a link? (a) id (b) href (c) src (d) alt
  36. 36.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h2>
  37. 37.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
  38. 38.True or false: <br> has a closing tag. (a) True (b) False
  39. 39.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) alt (c) height (d) width
  40. 40.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <br> (d) <ul>

Answer key

  1. an opening tag
  2. a code editor
  3. bullets
  4. </em>
  5. <a>
  6. <h2>
  7. <li>
  8. Yes
  9. False
  10. 2
  11. </b>
  12. 2
  13. <h1>
  14. <meta>
  15. My pets
  16. numbers
  17. No
  18. True
  19. <h6>
  20. a closing tag
  21. <img>
  22. art.html
  23. 2
  24. All about me
  25. <title>
  26. 4
  27. <h6>
  28. Yes
  29. shows pages from the web
  30. as one space
  31. <h1>
  32. bus.jpg
  33. in the body
  34. <h1>
  35. href
  36. <h2>
  37. <a href="about.html">
  38. False
  39. width
  40. <ol>

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