← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 345 · 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.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <p>My best friend</p>
    <!-- <p>Rain today</p> -->
  2. 2.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) < (d) (
  3. 3.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h4>Rain today</h4>
    <p>I love mangoes.</p>
    <p>My pets</p>
    <p>Rain today</p>
  4. 4.🌐 Which one shows line numbers? (a) a code editor (b) a web server (c) a web browser
  5. 5.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
  6. 6.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
  7. 7.True or false: <hr> is an empty tag. (a) True (b) False
  8. 8.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h2> (b) <h5> (c) <h4> (d) <h6>
  9. 9.💬 Does the browser show comments on the page? (a) No (b) Yes
  10. 10.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
  11. 11.🔍 One closing tag is missing. Which one?
    <b>My best friend
    <h2>Hello, world!</h2>
    <small>Rain today</small>
    (a) </em> (b) </h2> (c) </small> (d) </b>
  12. 12.🖼️ Which attribute of <img> describes the picture? (a) alt (b) src (c) height (d) width
  13. 13.📋 What number does the browser show next to “Papaya”?
    <ol start="4">
      <li>Guava</li>
      <li>Papaya</li>
      <li>Jamun</li>
    </ol>
  14. 14.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  15. 15.Which of these is a closing tag? (a) <body> (b) <p> (c) <li> (d) </b>
  16. 16.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) <\i> (d) </i>
  17. 17.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <ol> (c) <li>
  18. 18.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="150">
    (a) kite.png (b) map.png (c) cake.jpg (d) A red kite
  19. 19.True or false: <title> goes in the body. (a) False (b) True
  20. 20.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>My best friend</p>
    <p>Rain today</p>
  21. 21.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
  22. 22.Which of these has a closing tag? (a) <br> (b) <input> (c) <img> (d) <li>
  23. 23.📝 What does <p> make? (a) a paragraph (b) a link (c) a picture (d) a table
  24. 24.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h1> or <h2>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
  25. 25.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
  26. 26.True or false: HTML on its own can make headings. (a) True (b) False
  27. 27.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Fun facts</p> -->
    <p>Good morning!</p>
    <!-- <p>The red kite</p> -->
  28. 28.True or false: a code editor saves our .html files. (a) True (b) False
  29. 29.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Link (d) Laptop
  30. 30.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) alt (c) src (d) height
  31. 31.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Good morning!</p> -->
  32. 32.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
  33. 33.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
  34. 34.True or false: HTML on its own can keep a high score. (a) False (b) True
  35. 35.True or false: <title> has a closing tag. (a) True (b) False
  36. 36.🔗 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
  37. 37.🖼️ Which attribute of <img> tells which image to load? (a) src (b) alt (c) height (d) width
  38. 38.True or false: <li> goes inside ul or ol. (a) True (b) False
  39. 39.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
  40. 40.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>

Answer key

  1. 4
  2. <
  3. 2
  4. a code editor
  5. <h4>
  6. a slash /
  7. True
  8. <h2>
  9. No
  10. 6
  11. </b>
  12. alt
  13. 5
  14. an opening tag
  15. </b>
  16. </i>
  17. <li>
  18. kite.png
  19. False
  20. 2
  21. <ul>
  22. <li>
  23. a paragraph
  24. <h1>
  25. <ul>
  26. True
  27. 1
  28. True
  29. Language
  30. alt
  31. 1
  32. <h1>
  33. <a href="about.html">
  34. False
  35. True
  36. Contact us
  37. src
  38. True
  39. </strong>
  40. <ol>

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