← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 901 · 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: <ol> shows bullet points. (a) False (b) True
  2. 2.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h1> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h1>
  3. 3.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  4. 4.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>I love mangoes.</p>
    <p>Cricket is fun.</p>
  5. 5.🔠 Are headings shown in bold by default? (a) Yes (b) No
  6. 6.True or false: HTML on its own cannot pick a random number. (a) True (b) False
  7. 7.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h1> or <h5>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
  8. 8.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <br> (c) <ul> (d) <hr>
  9. 9.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
  10. 10.🌐 Which one hosts websites online? (a) a code editor (b) a web server (c) a web browser
  11. 11.Which of these is a closing tag? (a) <li> (b) <title> (c) </title> (d) <b>
  12. 12.True or false: HTML on its own can run a game loop. (a) True (b) False
  13. 13.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a href="about.html"> (d) <a alt="about.html">
  14. 14.💬 Why do coders write comments? (a) to make links (b) to leave notes (c) to show pictures (d) to add colour
  15. 15.True or false: in <img>, src tells which image to load. (a) True (b) False
  16. 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  17. 17.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  18. 18.True or false: HTML on its own cannot make headings. (a) True (b) False
  19. 19.🔗 Which address opens when you click this link?
    <a href="art.html">About us</a>
    (a) news.html (b) art.html (c) quiz.html (d) About us
  20. 20.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <p>My pets</p>
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
  21. 21.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) </html> (b) <!DOCTYPE html>
  22. 22.True or false: a web browser colours code to help us. (a) True (b) False
  23. 23.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>My pets</p>
    <!-- <p>Good morning!</p> -->
  24. 24.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  25. 25.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b/> (c) </b> (d) <b>
  26. 26.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) turns HTML into a page (d) saves our .html files
  27. 27.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
  28. 28.True or false: <link rel="stylesheet"> goes in the body. (a) False (b) True
  29. 29.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
  30. 30.True or false: <title> goes in the head. (a) True (b) False
  31. 31.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h1>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
  32. 32.💬 Does the browser show comments on the page? (a) Yes (b) No
  33. 33.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h6> (d) <h5>
  34. 34.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  35. 35.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) height (d) alt
  36. 36.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h5>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
  37. 37.True or false: in <img>, height sets how wide it is. (a) True (b) False
  38. 38.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
  39. 39.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h1> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
  40. 40.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>

Answer key

  1. False
  2. <h4>
  3. <ul>
  4. 2
  5. Yes
  6. True
  7. <h5>
  8. <ol>
  9. a web browser
  10. a web server
  11. </title>
  12. False
  13. <a href="about.html">
  14. to leave notes
  15. True
  16. a closing tag
  17. an opening tag
  18. False
  19. art.html
  20. 4
  21. <!DOCTYPE html>
  22. False
  23. 2
  24. a closing tag
  25. </b>
  26. saves our .html files
  27. 3
  28. False
  29. on the browser tab
  30. True
  31. <h6>
  32. No
  33. <h6>
  34. numbers
  35. alt
  36. <h1>
  37. False
  38. <
  39. <h1>
  40. <li>

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