← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 555 · 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.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 6 (d) 10
  2. 2.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) { (d) <
  3. 3.🌍 Which program shows a web page to us? (a) a calculator (b) a music player (c) a web browser (d) a paint program
  4. 4.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Fun facts</p> -->
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
  5. 5.📝 What does <br> do? (a) starts a new line (b) makes text bold (c) makes a list (d) adds a picture
  6. 6.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  7. 7.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h3> (d) <h4>
  8. 8.🔗 Which address opens when you click this link?
    <a href="about.html">Play games</a>
    (a) about.html (b) Play games (c) https://example.com (d) contact.html
  9. 9.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Our school trip</p>
    <h3>I love mangoes.</h3>
  10. 10.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>I love mangoes.</h3>
    <h2>The red kite</h2>
    <h3>My best friend</h3>
    <p>Good morning!</p>
  11. 11.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
  12. 12.📋 What number does the browser show next to “Litchi”?
    <ol start="3">
      <li>Banana</li>
      <li>Papaya</li>
      <li>Litchi</li>
    </ol>
  13. 13.Which of these goes in the head? (a) <h1> (b) <link rel="stylesheet"> (c) <a> (d) <table>
  14. 14.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  15. 15.True or false: <title> goes in the body. (a) True (b) False
  16. 16.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) address (c) editor (d) element
  17. 17.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
  18. 18.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="400">
  19. 19.True or false: a web server opens web pages for us. (a) True (b) False
  20. 20.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.🔗 Which address opens when you click this link?
    <a href="maths.html">About us</a>
    (a) news.html (b) maths.html (c) About us (d) art.html
  22. 22.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Grapes</li>
    </ol>
  23. 23.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
    (a) numbers (b) bullets
  24. 24.True or false: a code editor has an address bar. (a) True (b) False
  25. 25.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) Welcome! (c) Try this poha. (d) body
  26. 26.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h4>? (a) <h5> (b) <h2> (c) <h1> (d) <h4>
  27. 27.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) games.html (b) Play games (c) quiz.html (d) about.html
  28. 28.Which of these goes in the body? (a) <h1> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <style>
  29. 29.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) news.html (b) maths.html (c) School news (d) art.html
  30. 30.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  31. 31.True or false: <table> goes in the body. (a) False (b) True
  32. 32.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    (a) Hello, world! (b) I love mangoes. (c) The red kite
  33. 33.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  34. 34.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h2> (d) <h4>
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="300">
  36. 36.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>The red kite</p>
    (a) My pets (b) Hello, world! (c) The red kite
  37. 37.💾 A web page file usually ends with which extension? (a) .png (b) .html (c) .txt (d) .mp3
  38. 38.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
  39. 39.📋 What number does the browser show next to “Mango”?
    <ol start="3">
      <li>Banana</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Mango</li>
    </ol>
  40. 40.Which of these is an empty tag? (a) <title> (b) <ul> (c) <li> (d) <img>

Answer key

  1. 6
  2. <
  3. a web browser
  4. 2
  5. starts a new line
  6. <ul>
  7. <h2>
  8. about.html
  9. 2
  10. 4
  11. <h6>
  12. 5
  13. <link rel="stylesheet">
  14. Yes
  15. False
  16. element
  17. <h1>
  18. 400
  19. False
  20. a closing tag
  21. maths.html
  22. 6
  23. numbers
  24. False
  25. Welcome!
  26. <h5>
  27. quiz.html
  28. <h1>
  29. maths.html
  30. in the head
  31. True
  32. The red kite
  33. an opening tag
  34. <h4>
  35. 300
  36. Hello, world!
  37. .html
  38. <a>
  39. 6
  40. <img>

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