← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 212 · 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 of these is true of a code editor? (a) has an address bar (b) saves our .html files (c) opens web pages for us (d) hosts websites online
  2. 2.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>
  3. 3.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  4. 4.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
  5. 5.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>My best friend</p>
    (a) The red kite (b) My best friend (c) Cricket is fun.
  6. 6.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>My best friend</p>
    <h3>Fun facts</h3>
  7. 7.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  8. 8.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  9. 9.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  10. 10.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Good morning!</p> -->
  11. 11.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>My pets</p>
    <p>My best friend</p>
  12. 12.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
  13. 13.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
  14. 14.True or false: <a> goes in the head. (a) False (b) True
  15. 15.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h2>My pets</h2>
    <h4>I love mangoes.</h4>
    <p>Hello, world!</p>
  16. 16.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
  17. 17.🔍 One closing tag is missing. Which one?
    <u>Our school trip</u>
    <b>My best friend</b>
    <h1>My pets
    (a) </b> (b) </h3> (c) </h1> (d) </u>
  18. 18.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="200">
    (a) fort.jpg (b) bus.jpg (c) The full moon (d) moon.png
  19. 19.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h5> (b) <h6> (c) <h1> (d) <h4>
  20. 20.Which of these is an opening tag? (a) </h1> (b) </title> (c) </li> (d) <h1>
  21. 21.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>I love mangoes.</p>
    <h4>My pets</h4>
    <h3>Cricket is fun.</h3>
  22. 22.🔗 Which address opens when you click this link?
    <a href="maths.html">Art corner</a>
    (a) news.html (b) Art corner (c) maths.html (d) art.html
  23. 23.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h4>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
  24. 24.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
  25. 25.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <html> (d) <head>
  26. 26.Which of these is true of a web browser? (a) hosts websites online (b) saves our .html files (c) opens web pages for us (d) shows line numbers
  27. 27.True or false: <style> goes in the body. (a) False (b) True
  28. 28.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>Fun facts</p>
    <p>Good morning!</p>
  29. 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
  30. 30.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
  31. 31.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 3 (d) 10
  32. 32.🔗 Which address opens when you click this link?
    <a href="games.html">School news</a>
    (a) about.html (b) games.html (c) contact.html (d) School news
  33. 33.🖼️ Which attribute of <img> shows if the image fails? (a) src (b) height (c) width (d) alt
  34. 34.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h5> or <h3>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  35. 35.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Match report (b) index.html (c) Riya’s Recipes (d) I like to read.
  36. 36.True or false: <li> has a closing tag. (a) True (b) False
  37. 37.True or false: in <img>, height describes the picture. (a) True (b) False
  38. 38.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
  39. 39.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="250">
  40. 40.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h4>

Answer key

  1. saves our .html files
  2. 6
  3. <
  4. <h6>
  5. Cricket is fun.
  6. 2
  7. No
  8. an opening tag
  9. in the body
  10. 1
  11. 4
  12. <a>
  13. <li>
  14. False
  15. 3
  16. 6
  17. </h1>
  18. moon.png
  19. <h1>
  20. <h1>
  21. 3
  22. maths.html
  23. <h1>
  24. a paragraph
  25. <!DOCTYPE html>
  26. opens web pages for us
  27. False
  28. 3
  29. <ol>
  30. 6
  31. 1
  32. games.html
  33. alt
  34. <h1>
  35. Riya’s Recipes
  36. True
  37. False
  38. on the browser tab
  39. 250
  40. <h6>

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