← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 327 · 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 heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h2>? (a) <h4> (b) <h5> (c) <h6> (d) <h2>
  2. 2.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  3. 3.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
  4. 4.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h4> or <h3>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
  5. 5.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <hr> (d) <ol>
  6. 6.True or false: <ol> lists things in any order. (a) False (b) True
  7. 7.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <h2>Our school trip</h2>
  8. 8.True or false: <ol> is an unordered list. (a) True (b) False
  9. 9.📄 Can HTML on its own count button clicks? (a) No (b) Yes
  10. 10.📋 Which list tag shows bullet points? (a) <ul> (b) <li> (c) <ol>
  11. 11.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) colours code to help us (d) turns HTML into a page
  12. 12.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  13. 13.True or false: a code editor turns HTML into a page. (a) False (b) True
  14. 14.🔢 In a basic web page file, which comes LAST? (a) <html> (b) </html> (c) <body> (d) <head>
  15. 15.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 3 (d) 10
  16. 16.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Our school trip</p>
    <p>Hello, world!</p>
  17. 17.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  18. 18.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h5>
  19. 19.🔍 Which line is missing its closing tag?
    line 1: <u>I love mangoes.</u>
    line 2: <strong>Hello, world!
    line 3: <h1>The red kite</h1>
    (a) line 3 (b) line 1 (c) line 2
  20. 20.💬 Does the browser show comments on the page? (a) Yes (b) No
  21. 21.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>Our school trip</p>
    <p>Fun facts</p>
    <p>Fun facts</p>
    <p>Hello, world!</p>
  22. 22.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
  23. 23.🔗 Where does this link open?
    <a href="maths.html">About us</a>
    (a) in a new tab (b) in the same tab
  24. 24.🔗 Where does this link open?
    <a href="about.html">Maths fun</a>
    (a) in the same tab (b) in a new tab
  25. 25.🔍 One closing tag is missing. Which one?
    <small>Hello, world!
    <em>Rain today</em>
    <h2>Cricket is fun.</h2>
    (a) </em> (b) </h2> (c) </strong> (d) </small>
  26. 26.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
  27. 27.Which of these goes in the head? (a) <h1> (b) <table> (c) <link rel="stylesheet"> (d) <img>
  28. 28.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
  29. 29.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h2>Hello, world!</h2>
    <h3>Rain today</h3>
    <p>Hello, world!</p>
    <h2>The red kite</h2>
  30. 30.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="150">
  31. 31.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h1> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
  32. 32.True or false: in <img>, width is read by screen readers. (a) False (b) True
  33. 33.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers
  34. 34.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  35. 35.True or false: in <img>, src sets how tall it is. (a) False (b) True
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) Cricket Club (c) body (d) My drawings
  37. 37.🖼️ Which attribute of <img> names the picture file? (a) src (b) alt (c) height (d) width
  38. 38.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
  39. 39.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <a> (d) <img>
  40. 40.Which of these is an opening tag? (a) </b> (b) <body> (c) </body> (d) </title>

Answer key

  1. <h6>
  2. No
  3. a web browser
  4. <h2>
  5. <ol>
  6. False
  7. 2
  8. False
  9. No
  10. <ul>
  11. colours code to help us
  12. in the body
  13. False
  14. </html>
  15. 1
  16. 3
  17. a closing tag
  18. <h2>
  19. line 2
  20. No
  21. 5
  22. <a href="about.html">
  23. in the same tab
  24. in the same tab
  25. </small>
  26. 3
  27. <link rel="stylesheet">
  28. a web server
  29. 4
  30. 150
  31. <h1>
  32. False
  33. bullets
  34. 2
  35. False
  36. My drawings
  37. src
  38. <h6>
  39. <meta charset="utf-8">
  40. <body>

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