← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 923 · 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.📝 What does <p> make? (a) a link (b) a table (c) a picture (d) a paragraph
  2. 2.🔍 One closing tag is missing. Which one?
    <small>Our school trip
    <p>Fun facts</p>
    <h3>Hello, world!</h3>
    (a) </h3> (b) </small> (c) </i> (d) </p>
  3. 3.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
  4. 4.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  5. 5.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h2> or <h4>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
  6. 6.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h2> or <h1>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
  7. 7.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="300">
    (a) moon.png (b) cake.jpg (c) dog.jpg (d) Birthday cake
  8. 8.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Papaya</li>
    </ol>
    (a) bullets (b) numbers
  9. 9.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h4> or <h6>? (a) <h3> (b) <h1> (c) <h6> (d) <h4>
  10. 10.🏷️ Which is the closing tag for <em>? (a) </em> (b) <\em> (c) <em/> (d) <em>
  11. 11.True or false: <p> has a closing tag. (a) True (b) False
  12. 12.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
  13. 13.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) < (d) (
  14. 14.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h4> (d) <h1>
  15. 15.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h1> (d) <h3>
  16. 16.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    <h2>My pets</h2>
    <p>Our school trip</p>
  17. 17.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Banana</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>The red kite</p>
    <!-- <p>My best friend</p> -->
    <p>Our school trip</p>
  19. 19.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
  20. 20.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
    <p>My best friend</p>
    <p>Good morning!</p>
    (a) Our school trip (b) My best friend (c) Hello, world! (d) Good morning!
  21. 21.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the title (d) the doctype
  22. 22.🔍 One closing tag is missing. Which one?
    <h1>Our school trip</h1>
    <i>Hello, world!</i>
    <small>I love mangoes.
    (a) </h1> (b) </i> (c) </h2> (d) </small>
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing<br>Roses are red</p>
  24. 24.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Visit the site</a>
    (a) in a new tab (b) in the same tab
  25. 25.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="150">
  26. 26.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>Fun facts</h2>
    <p>Cricket is fun.</p>
  27. 27.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  28. 28.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) opens web pages for us (d) colours code to help us
  29. 29.🔍 One closing tag is missing. Which one?
    <h3>Rain today
    <b>Our school trip</b>
    <strong>Good morning!</strong>
    (a) </strong> (b) </b> (c) </h3> (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.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  32. 32.Which of these goes in the body? (a) <title> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <p>
  33. 33.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
  34. 34.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) alt (c) height (d) src
  35. 35.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Visit the site</a>
    (a) in the same tab (b) in a new tab
  36. 36.📛 In <a href="x.html">, what is href? (a) a comment (b) an element name (c) a closing tag (d) an attribute
  37. 37.True or false: a web browser saves our .html files. (a) True (b) False
  38. 38.True or false: <ul> lists steps in order. (a) True (b) False
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Good morning!</p>
    <p>My pets</p>
    <p>I love mangoes.</p>
    <p>My best friend</p>
  40. 40.🔗 What does HyperText mean? (a) secret text (b) text with links (c) very big text (d) text in colour

Answer key

  1. a paragraph
  2. </small>
  3. <ol>
  4. 3
  5. <h2>
  6. <h1>
  7. cake.jpg
  8. numbers
  9. <h1>
  10. </em>
  11. True
  12. a web browser
  13. <
  14. <h5>
  15. <h1>
  16. 4
  17. 3
  18. 2
  19. <!DOCTYPE html>
  20. Hello, world!
  21. the body
  22. </small>
  23. 3
  24. in a new tab
  25. 150
  26. 2
  27. numbers
  28. opens web pages for us
  29. </h3>
  30. in the body
  31. No
  32. <p>
  33. on the browser tab
  34. alt
  35. in a new tab
  36. an attribute
  37. False
  38. False
  39. 4
  40. text with links

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