← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 758 · 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.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  2. 2.True or false: a web browser answers page requests. (a) False (b) True
  3. 3.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <table> (c) <style> (d) <title>
  4. 4.True or false: <ul> goes in the head. (a) True (b) False
  5. 5.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>The red kite</p>
    <h2>My pets</h2>
    <p>My pets</p>
    <h2>I love mangoes.</h2>
    <h2>Rain today</h2>
  6. 6.🔗 Which words do you click on?
    <a href="art.html">About us</a>
    (a) art.html (b) Contact us (c) href (d) About us
  7. 7.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
  8. 8.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
  9. 9.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  10. 10.💬 How does an HTML comment start? (a) /* (b) // (c) <!-- (d) #
  11. 11.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) stores a website’s files
  12. 12.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
  13. 13.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  14. 14.Which of these goes in the head? (a) <a> (b) <img> (c) <style> (d) <table>
  15. 15.True or false: <ul> is one item of a list. (a) False (b) True
  16. 16.Which of these goes in the body? (a) <style> (b) <title> (c) <meta charset="utf-8"> (d) <ul>
  17. 17.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  18. 18.True or false: in <img>, alt is read by screen readers. (a) True (b) False
  19. 19.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>Good morning!</p>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
  20. 20.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  22. 22.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>My best friend</p>
    (a) My pets (b) My best friend (c) Hello, world!
  23. 23.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
  24. 24.Which of these is an empty tag? (a) <h1> (b) <p> (c) <title> (d) <hr>
  25. 25.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 10 (d) 3
  26. 26.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
  27. 27.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h6> (d) <h3>
  28. 28.🏷️ HTML marks up text using ___. (a) keys (b) tags (c) pixels (d) wires
  29. 29.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <!-- <p>Good morning!</p> -->
    <p>Rain today</p>
    <p>The red kite</p>
  31. 31.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing</p>
  32. 32.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) href (b) Art corner (c) games.html (d) Maths fun
  33. 33.🔗 Where does this link open?
    <a href="contact.html">Play games</a>
    (a) in the same tab (b) in a new tab
  34. 34.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
  35. 35.📝 What does <hr> draw? (a) a line across the page (b) a table (c) a picture (d) a link
  36. 36.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
  37. 37.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <head> (d) <html>
  38. 38.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>My best friend</p>
    <p>Fun facts</p>
    <p>Hello, world!</p>
    (a) Fun facts (b) My best friend (c) Rain today (d) Hello, world!
  39. 39.Which of these is an opening tag? (a) <li> (b) </h1> (c) </p> (d) </body>
  40. 40.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>

Answer key

  1. bullets
  2. False
  3. <table>
  4. False
  5. 3
  6. About us
  7. <h6>
  8. <h1>
  9. in the head
  10. <!--
  11. stores a website’s files
  12. 4
  13. an opening tag
  14. <style>
  15. False
  16. <ul>
  17. No
  18. True
  19. 4
  20. a closing tag
  21. Yes
  22. Hello, world!
  23. <h5>
  24. <hr>
  25. 1
  26. a web browser
  27. <h6>
  28. tags
  29. Yes
  30. 2
  31. 5
  32. Maths fun
  33. in the same tab
  34. False
  35. a line across the page
  36. 2
  37. <!DOCTYPE html>
  38. Rain today
  39. <li>
  40. <ol>

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