← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 875 · 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.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) href (b) Take the quiz (c) School news (d) art.html
  2. 2.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Cricket is fun. (c) The red kite (d) My best friend
  3. 3.💬 Does the browser show comments on the page? (a) Yes (b) No
  4. 4.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Guava</li>
    </ul>
  5. 5.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Play games (b) href (c) Take the quiz (d) games.html
  6. 6.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) body (c) Welcome! (d) Cricket Club
  7. 7.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 6 (d) 4
  8. 8.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
  9. 9.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <style> (c) <a> (d) <title>
  10. 10.True or false: in <img>, alt describes the picture. (a) True (b) False
  11. 11.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  12. 12.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .html (d) .png
  13. 13.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <!DOCTYPE html> (d) <body>
  14. 14.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) </h1> (c) <\h1> (d) <h1/>
  15. 15.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) index.html (c) Thanks for visiting. (d) All about me
  16. 16.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
  17. 17.Which of these goes in the head? (a) <h1> (b) <title> (c) <ul> (d) <table>
  18. 18.📋 What number does the browser show next to “Mango”?
    <ol start="6">
      <li>Guava</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Litchi</li>
    </ol>
  19. 19.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h2> or <h1>? (a) <h6> (b) <h2> (c) <h1> (d) <h4>
  20. 20.📋 How many items does this list show?
    <ol>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  21. 21.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Machine (c) Markup (d) Modern
  22. 22.True or false: HTML on its own cannot make headings. (a) True (b) False
  23. 23.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <p>Rain today</p>
    <p>Good morning!</p>
    <p>I love mangoes.</p>
  24. 24.True or false: <ul> lists things in any order. (a) True (b) False
  25. 25.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Banana</li>
    </ol>
  26. 26.💬 How does an HTML comment start? (a) <!-- (b) /* (c) // (d) #
  27. 27.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>The red kite</p>
    (a) My best friend (b) Our school trip (c) I love mangoes. (d) The red kite
  28. 28.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
  29. 29.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
  30. 30.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  31. 31.📋 Which tag goes around each item of a list? (a) <ol> (b) <li> (c) <ul> (d) <p>
  32. 32.🏷️ Which is the closing tag for <b>? (a) </b> (b) <b/> (c) <\b> (d) <b>
  33. 33.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) text with links (d) secret text
  34. 34.🔍 One closing tag is missing. Which one?
    <h3>Fun facts</h3>
    <strong>Cricket is fun.
    <i>Hello, world!</i>
    (a) </i> (b) </h3> (c) </h1> (d) </strong>
  35. 35.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a href="about.html"> (d) <a src="about.html">
  36. 36.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="350">
    (a) kite.png (b) A tiger asleep (c) map.png (d) tiger.jpg
  37. 37.True or false: <title> goes in the head. (a) False (b) True
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>Our school trip</p>
    <p>My best friend</p>
    <!-- <p>Good morning!</p> -->
  39. 39.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) height (c) alt (d) src
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Sky is blue<br>Kites fly high<br>Roses are red</p>

Answer key

  1. School news
  2. My best friend
  3. No
  4. 2
  5. Take the quiz
  6. Welcome!
  7. 6
  8. <h6>
  9. <a>
  10. True
  11. <h1>
  12. .html
  13. <!DOCTYPE html>
  14. </h1>
  15. Riya’s Recipes
  16. 2
  17. <title>
  18. 7
  19. <h1>
  20. 5
  21. Markup
  22. False
  23. 4
  24. True
  25. 3
  26. <!--
  27. My best friend
  28. <ul>
  29. <ol>
  30. No
  31. <li>
  32. </b>
  33. text with links
  34. </strong>
  35. <a href="about.html">
  36. tiger.jpg
  37. True
  38. 3
  39. width
  40. 4

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