← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 856 · 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 is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
  2. 2.📄 Can HTML on its own make tables? (a) Yes (b) No
  3. 3.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
  4. 4.True or false: <li> is an ordered list. (a) True (b) False
  5. 5.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
    <p>Rain today</p>
  6. 6.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
  7. 7.Which of these is a closing tag? (a) <p> (b) <h1> (c) <title> (d) </p>
  8. 8.🔗 Which words do you click on?
    <a href="news.html">Visit the site</a>
    (a) Maths fun (b) href (c) news.html (d) Visit the site
  9. 9.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>My best friend</p>
    <!-- <p>Good morning!</p> -->
  10. 10.📋 What number does the browser show next to “Guava”?
    <ol start="2">
      <li>Litchi</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Guava</li>
    </ol>
  11. 11.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a printer (d) a plain text editor
  12. 12.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <!DOCTYPE html> (c) </head> (d) </html>
  13. 13.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) turns HTML into a page (d) stores a website’s files
  14. 14.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h4> (d) <h6>
  15. 15.True or false: <a> goes in the head. (a) True (b) False
  16. 16.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  17. 17.True or false: HTML on its own can count button clicks. (a) False (b) True
  18. 18.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h6> (c) <h1> (d) <br>
  19. 19.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
    (a) bullets (b) numbers
  20. 20.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  21. 21.📄 Can HTML on its own count button clicks? (a) Yes (b) No
  22. 22.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
  23. 23.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) colours (d) structure
  24. 24.🖼️ Which attribute of <img> tells which image to load? (a) height (b) width (c) src (d) alt
  25. 25.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h2>? (a) <h5> (b) <h4> (c) <h2> (d) <h3>
  26. 26.🏷️ Which is the closing tag for <b>? (a) <\b> (b) </b> (c) <b/> (d) <b>
  27. 27.Which of these goes in the head? (a) <table> (b) <style> (c) <h1> (d) <img>
  28. 28.True or false: <h1> goes in the head. (a) False (b) True
  29. 29.Which of these goes in the body? (a) <a> (b) <link rel="stylesheet"> (c) <title> (d) <meta charset="utf-8">
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>Our school trip</p>
  31. 31.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h4> (c) <h6> (d) <h1>
  32. 32.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h2>My best friend</h2>
    <h4>Good morning!</h4>
    <h3>The red kite</h3>
    <h3>Fun facts</h3>
  33. 33.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
  34. 34.Which of these is true of a code editor? (a) shows line numbers (b) hosts websites online (c) stores a website’s files (d) shows pages from the web
  35. 35.True or false: in <img>, height sets how tall it is. (a) True (b) False
  36. 36.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h3>? (a) <h3> (b) <h4> (c) <h6> (d) <h1>
  37. 37.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  38. 38.📋 What number does the browser show next to “Papaya”?
    <ol start="6">
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
  39. 39.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h2>? (a) <h2> (b) <h6> (c) <h1> (d) <h4>
  40. 40.🔗 Which words do you click on?
    <a href="news.html">Art corner</a>
    (a) href (b) news.html (c) Art corner (d) School news

Answer key

  1. <!DOCTYPE html>
  2. Yes
  3. <ul>
  4. False
  5. 2
  6. a slash /
  7. </p>
  8. Visit the site
  9. 2
  10. 5
  11. a plain text editor
  12. </html>
  13. turns HTML into a page
  14. <h6>
  15. False
  16. <img>
  17. False
  18. <h1>
  19. numbers
  20. has a closing tag
  21. No
  22. <ol>
  23. structure
  24. src
  25. <h2>
  26. </b>
  27. <style>
  28. False
  29. <a>
  30. 1
  31. <h1>
  32. 5
  33. -->
  34. shows line numbers
  35. True
  36. <h1>
  37. bullets
  38. 7
  39. <h1>
  40. Art corner

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