← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 454 · 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.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
  2. 2.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
  3. 3.True or false: <meta> is an empty tag. (a) True (b) False
  4. 4.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) ( (d) <
  5. 5.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
  6. 6.📋 What number does the browser show next to “Papaya”?
    <ol start="2">
      <li>Guava</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Papaya</li>
    </ol>
  7. 7.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>Rain today</p> -->
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  8. 8.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <br> (d) <ul>
  9. 9.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  10. 10.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
  11. 11.Which of these is true of a web server? (a) colours code to help us (b) has an address bar (c) saves our .html files (d) stores a website’s files
  12. 12.🔗 Which words do you click on?
    <a href="art.html">Contact us</a>
    (a) href (b) art.html (c) Contact us (d) Visit the site
  13. 13.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Mouse (c) Markup (d) Modern
  14. 14.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
    </ol>
  15. 15.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  16. 16.Which of these has a closing tag? (a) <h1> (b) <hr> (c) <img> (d) <meta>
  17. 17.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="100">
  18. 18.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  19. 19.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <b/> (d) <\b>
  20. 20.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>My best friend</p>
    <p>My pets</p>
    <p>Cricket is fun.</p>
    <p>My best friend</p>
  21. 21.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
  22. 22.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
  23. 23.True or false: <ul> lists things in any order. (a) True (b) False
  24. 24.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  25. 25.True or false: <hr> has a closing tag. (a) True (b) False
  26. 26.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
  27. 27.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="300">
    (a) Our school bus (b) bus.jpg (c) width (d) An old fort
  29. 29.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="50">
    (a) An old fort (b) A tiger asleep (c) width (d) fort.jpg
  30. 30.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <p>Rain today</p>
  31. 31.True or false: HTML on its own can add up two numbers. (a) True (b) False
  32. 32.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
  33. 33.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <p>Rain today</p>
    <h2>Cricket is fun.</h2>
    <p>Cricket is fun.</p>
    <p>My best friend</p>
  34. 34.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h5> (b) <h4> (c) <h2> (d) <h1>
  35. 35.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
  36. 36.💬 Does the browser show comments on the page? (a) Yes (b) No
  37. 37.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a src="about.html">
  38. 38.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
  39. 39.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a new line (c) as 5 spaces (d) as a dot
  40. 40.🔗 Which words do you click on?
    <a href="art.html">Take the quiz</a>
    (a) art.html (b) Take the quiz (c) href (d) Play games

Answer key

  1. Yes
  2. <h1>
  3. True
  4. <
  5. <h1>
  6. 5
  7. 2
  8. <ul>
  9. Yes
  10. a web browser
  11. stores a website’s files
  12. Contact us
  13. Markup
  14. 2
  15. No
  16. <h1>
  17. 100
  18. has a closing tag
  19. </b>
  20. 5
  21. <ul>
  22. 2
  23. True
  24. <ol>
  25. False
  26. a code editor
  27. <img>
  28. Our school bus
  29. An old fort
  30. 3
  31. False
  32. <h1>
  33. 5
  34. <h5>
  35. -->
  36. No
  37. <a href="about.html">
  38. a web browser
  39. as one space
  40. Take the quiz

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