← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 994 · 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 is the odd one out? (a) saves our .html files (b) sends pages over the net (c) stores a website’s files (d) hosts websites online
  2. 2.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  3. 3.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h6> (b) <h4> (c) <h5> (d) <h1>
  4. 4.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Modern (c) Mouse (d) Machine
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
  6. 6.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
  7. 7.🔗 Which words do you click on?
    <a href="https://example.com">Visit the site</a>
    (a) Visit the site (b) href (c) Maths fun (d) https://example.com
  8. 8.🔍 One closing tag is missing. Which one?
    <h3>Fun facts
    <i>My best friend</i>
    <u>Cricket is fun.</u>
    (a) </h3> (b) </b> (c) </u> (d) </i>
  9. 9.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a closing tag (d) a comment
  10. 10.📋 What number does the browser show next to “Grapes”?
    <ol start="2">
      <li>Mango</li>
      <li>Grapes</li>
      <li>Banana</li>
    </ol>
  11. 11.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
  12. 12.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>The red kite</p>
  13. 13.🔗 Which words do you click on?
    <a href="maths.html">Maths fun</a>
    (a) Art corner (b) href (c) maths.html (d) Maths fun
  14. 14.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Orange</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  15. 15.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Fun facts</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>Rain today</p>
  16. 16.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to describe the image (d) to make it bigger
  17. 17.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) Play games (b) href (c) About us (d) contact.html
  18. 18.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
  19. 19.🔠 How many heading levels does HTML have? (a) 10 (b) 4 (c) 6 (d) 3
  20. 20.🔍 One closing tag is missing. Which one?
    <u>Cricket is fun.</u>
    <h2>Good morning!
    <h1>My best friend</h1>
    (a) </h1> (b) </h2> (c) </b> (d) </u>
  21. 21.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h2> (d) <h1>
  22. 22.True or false: HTML on its own can make a form. (a) False (b) True
  23. 23.🖼️ Which attribute of <img> tells which image to load? (a) src (b) width (c) alt (d) height
  24. 24.True or false: <title> goes in the body. (a) True (b) False
  25. 25.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h3> (d) <h2>
  26. 26.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) on the browser tab (d) in a big heading
  27. 27.📋 What number does the browser show next to “Grapes”?
    <ol start="6">
      <li>Mango</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  28. 28.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
  29. 29.🔍 One closing tag is missing. Which one?
    <h1>My best friend
    <h2>My pets</h2>
    <i>Hello, world!</i>
    (a) </h1> (b) </h2> (c) </i> (d) </small>
  30. 30.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  31. 31.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h3> (d) <h1>
  32. 32.📝 What does <p> make? (a) a picture (b) a link (c) a paragraph (d) a table
  33. 33.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Litchi</li>
    </ol>
  34. 34.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
  35. 35.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
  36. 36.📋 What number does the browser show next to “Orange”?
    <ol start="2">
      <li>Jamun</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  37. 37.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Birds sing<br>Kites fly high</p>
  38. 38.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>My best friend</p>
    (a) I love mangoes. (b) My best friend (c) Hello, world!
  39. 39.True or false: HTML on its own can make bullet lists. (a) False (b) True
  40. 40.True or false: a code editor is where we type code. (a) True (b) False

Answer key

  1. saves our .html files
  2. <li>
  3. <h1>
  4. Markup
  5. 200
  6. <!DOCTYPE html>
  7. Visit the site
  8. </h3>
  9. an attribute
  10. 3
  11. Yes
  12. 1
  13. Maths fun
  14. 3
  15. 4
  16. to describe the image
  17. Play games
  18. 5
  19. 6
  20. </h2>
  21. <h6>
  22. True
  23. src
  24. False
  25. <h1>
  26. on the browser tab
  27. 7
  28. -->
  29. </h1>
  30. in the body
  31. <h6>
  32. a paragraph
  33. 2
  34. the body
  35. <a>
  36. 3
  37. 4
  38. I love mangoes.
  39. True
  40. True

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