← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 216 · 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.True or false: a web browser opens web pages for us. (a) True (b) False
  2. 2.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
  3. 3.🔍 One closing tag is missing. Which one?
    <b>Cricket is fun.</b>
    <h1>Fun facts</h1>
    <em>Hello, world!
    (a) </small> (b) </h1> (c) </em> (d) </b>
  4. 4.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  5. 5.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  6. 6.🏷️ HTML marks up text using ___. (a) pixels (b) tags (c) wires (d) keys
  7. 7.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  8. 8.🏷️ Which is the closing tag for <u>? (a) <\u> (b) </u> (c) <u/> (d) <u>
  9. 9.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine</p>
  10. 10.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h2>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
  11. 11.🔍 One closing tag is missing. Which one?
    <h3>The red kite</h3>
    <b>My best friend
    <h2>Hello, world!</h2>
    (a) </h2> (b) </b> (c) </h1> (d) </h3>
  12. 12.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
  13. 13.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    (a) Our school trip (b) Good morning! (c) Fun facts
  14. 14.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  15. 15.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h6> or <h1>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
  16. 16.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
  17. 17.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) </html> (d) <!DOCTYPE html>
  18. 18.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
  19. 19.Which of these is true of a web server? (a) opens web pages for us (b) hosts websites online (c) shows pages from the web (d) has an address bar
  20. 20.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <p>Hello, world!</p>
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
  21. 21.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>I love mangoes.</p>
    <p>My pets</p>
    <p>I love mangoes.</p>
    <p>Our school trip</p>
  22. 22.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
  23. 23.True or false: in <img>, width tells which image to load. (a) False (b) True
  24. 24.True or false: <table> goes in the body. (a) False (b) True
  25. 25.True or false: a web browser sends pages over the net. (a) False (b) True
  26. 26.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) saves our .html files
  27. 27.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing<br>Kites fly high<br>Sky is blue</p>
  28. 28.💬 How does an HTML comment end? (a) >> (b) // (c) */ (d) -->
  29. 29.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine</p>
  30. 30.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    (a) Hello, world! (b) Our school trip (c) I love mangoes.
  31. 31.📋 Which list suits a shopping list in any order? (a) <ul> (b) <ol> (c) <br> (d) <hr>
  32. 32.Which of these is an empty tag? (a) <br> (b) <title> (c) <ul> (d) <p>
  33. 33.True or false: <ol> shows bullet points. (a) True (b) False
  34. 34.True or false: a web browser stores a website’s files. (a) True (b) False
  35. 35.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
  36. 36.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  37. 37.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
  38. 38.🔗 Which address opens when you click this link?
    <a href="https://example.com">Visit the site</a>
    (a) https://example.com (b) Visit the site (c) art.html (d) maths.html
  39. 39.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>My best friend</p>
    <p>My pets</p>
    <p>Fun facts</p>
    <!-- <p>Hello, world!</p> -->
  40. 40.💬 How does an HTML comment start? (a) <!-- (b) // (c) /* (d) #

Answer key

  1. True
  2. <h1>
  3. </em>
  4. False
  5. a closing tag
  6. tags
  7. an empty tag
  8. </u>
  9. 2
  10. <h1>
  11. </b>
  12. 1
  13. Our school trip
  14. has a closing tag
  15. <h1>
  16. True
  17. </html>
  18. 6
  19. hosts websites online
  20. 3
  21. 1
  22. <h6>
  23. False
  24. True
  25. False
  26. saves our .html files
  27. 4
  28. -->
  29. 2
  30. Our school trip
  31. <ul>
  32. <br>
  33. False
  34. False
  35. element
  36. No
  37. <h5>
  38. https://example.com
  39. 4
  40. <!--

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