← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 358 · 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: <h5>, <h1>, <h4> or <h3>? (a) <h4> (b) <h3> (c) <h5> (d) <h1>
  2. 2.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Grapes</li>
    </ul>
  3. 3.Which of these is true of a web browser? (a) opens web pages for us (b) saves our .html files (c) sends pages over the net (d) answers page requests
  4. 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h2>? (a) <h2> (b) <h3> (c) <h5> (d) <h1>
  5. 5.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>My best friend</h2>
    <h2>I love mangoes.</h2>
    <h2>Our school trip</h2>
    <p>My pets</p>
    <h2>Hello, world!</h2>
  6. 6.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Space Facts (b) Planets (c) index.html (d) Try this poha.
  7. 7.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
  8. 8.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  9. 9.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Good morning!</p>
    <!-- <p>Cricket is fun.</p> -->
    (a) Cricket is fun. (b) My best friend (c) Good morning!
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="300">
    (a) cake.jpg (b) width (c) Birthday cake (d) A happy dog
  11. 11.Which of these is an opening tag? (a) <p> (b) </body> (c) </h1> (d) </title>
  12. 12.🔢 In a basic web page file, which comes LAST? (a) <!DOCTYPE html> (b) <html> (c) </head> (d) </html>
  13. 13.🔢 In a basic web page file, which comes first: “</head>” or “</html>”? (a) </head> (b) </html>
  14. 14.🖼️ Which picture file does the browser load?
    <img src="dog.jpg" alt="A happy dog" width="300">
    (a) bus.jpg (b) dog.jpg (c) moon.png (d) A happy dog
  15. 15.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <h3> (d) <p>
  16. 16.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) href (b) School news (c) Take the quiz (d) art.html
  17. 17.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) very big text (d) text with links
  18. 18.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>The red kite</p>
    <p>I love mangoes.</p>
  19. 19.🔗 Which address opens when you click this link?
    <a href="games.html">School news</a>
    (a) School news (b) games.html (c) about.html (d) contact.html
  20. 20.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
    </ol>
    (a) bullets (b) numbers
  21. 21.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My best friend</p>
    <p>Our school trip</p>
    (a) My best friend (b) Our school trip (c) Hello, world!
  22. 22.True or false: a web browser turns HTML into a page. (a) True (b) False
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Rivers flow<br>Birds sing<br>Roses are red</p>
  24. 24.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  25. 25.🔍 One closing tag is missing. Which one?
    <p>My best friend
    <u>Rain today</u>
    <h1>My pets</h1>
    (a) </h1> (b) </p> (c) </u> (d) </small>
  26. 26.🔗 Which words do you click on?
    <a href="contact.html">Contact us</a>
    (a) contact.html (b) Visit the site (c) href (d) Contact us
  27. 27.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>My best friend</p>
  28. 28.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Good morning!</p>
    <h2>I love mangoes.</h2>
    <p>Our school trip</p>
    <h2>My pets</h2>
  29. 29.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) The red kite (c) My pets (d) Fun facts
  30. 30.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
  31. 31.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>Good morning!</p>
    (a) Hello, world! (b) Fun facts (c) Good morning! (d) My pets
  32. 32.💬 How does an HTML comment end? (a) */ (b) >> (c) // (d) -->
  33. 33.True or false: <ol> is an ordered list. (a) False (b) True
  34. 34.True or false: in <img>, src tells which image to load. (a) True (b) False
  35. 35.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the title (d) the doctype
  36. 36.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
  37. 37.📄 Can HTML on its own make a form? (a) No (b) Yes
  38. 38.🔍 One closing tag is missing. Which one?
    <h2>My pets</h2>
    <strong>I love mangoes.
    <b>Rain today</b>
    (a) </h2> (b) </h3> (c) </b> (d) </strong>
  39. 39.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  40. 40.True or false: <ul> shows bullet points. (a) False (b) True

Answer key

  1. <h1>
  2. 4
  3. opens web pages for us
  4. <h1>
  5. 2
  6. Space Facts
  7. 1
  8. Yes
  9. Cricket is fun.
  10. Birthday cake
  11. <p>
  12. </html>
  13. </head>
  14. dog.jpg
  15. <h6>
  16. School news
  17. text with links
  18. 3
  19. games.html
  20. numbers
  21. Hello, world!
  22. True
  23. 5
  24. an empty tag
  25. </p>
  26. Contact us
  27. 3
  28. 3
  29. The red kite
  30. <ol>
  31. My pets
  32. -->
  33. True
  34. True
  35. the body
  36. in the body
  37. Yes
  38. </strong>
  39. an opening tag
  40. True

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