← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 113 · 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 items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Jamun</li>
    </ul>
  2. 2.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) in a big heading (d) on the browser tab
  3. 3.True or false: a web browser shows pages from the web. (a) True (b) False
  4. 4.Which of these has a closing tag? (a) <br> (b) <input> (c) <p> (d) <hr>
  5. 5.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h1>? (a) <h1> (b) <h5> (c) <h6> (d) <h3>
  6. 6.Which of these is true of a web browser? (a) colours code to help us (b) hosts websites online (c) stores a website’s files (d) turns HTML into a page
  7. 7.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) map.png (b) width (c) Birthday cake (d) Map of India
  8. 8.🔗 Which words do you click on?
    <a href="news.html">Contact us</a>
    (a) href (b) news.html (c) Visit the site (d) Contact us
  9. 9.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Kites fly high</p>
  10. 10.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2> (c) <\h2> (d) <h2/>
  11. 11.True or false: in <img>, src tells which image to load. (a) True (b) False
  12. 12.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <br> (d) <ol>
  13. 13.True or false: a code editor has an address bar. (a) True (b) False
  14. 14.True or false: <style> goes in the body. (a) True (b) False
  15. 15.📝 Does <img> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  16. 16.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  17. 17.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Papaya</li>
    </ol>
    (a) numbers (b) bullets
  18. 18.Which of these is true of a code editor? (a) shows line numbers (b) sends pages over the net (c) hosts websites online (d) turns HTML into a page
  19. 19.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) About us (b) Contact us (c) href (d) quiz.html
  20. 20.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
  21. 21.True or false: <p> goes in the head. (a) True (b) False
  22. 22.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Hello, world! (c) Our school trip (d) Cricket is fun.
  23. 23.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
  24. 24.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Fun facts</p>
    <h2>Hello, world!</h2>
    <p>Cricket is fun.</p>
  25. 25.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) HyperText (c) Hot Tags (d) Home Text
  26. 26.🔍 One closing tag is missing. Which one?
    <h2>I love mangoes.</h2>
    <small>Rain today</small>
    <em>Cricket is fun.
    (a) </h2> (b) </p> (c) </em> (d) </small>
  27. 27.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <p>I love mangoes.</p>
  28. 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  29. 29.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) games.html (b) Art corner (c) href (d) Maths fun
  30. 30.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Mars is red. (b) Easy snacks (c) Riya’s Recipes (d) index.html
  31. 31.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
  32. 32.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>My pets</p>
    <p>My pets</p>
    <p>The red kite</p>
  33. 33.🔠 Are headings shown in bold by default? (a) No (b) Yes
  34. 34.🔗 Where does this link open?
    <a href="art.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  35. 35.Which of these is true of a web browser? (a) colours code to help us (b) saves our .html files (c) has an address bar (d) hosts websites online
  36. 36.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  37. 37.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h1>? (a) <h4> (b) <h6> (c) <h3> (d) <h1>
  38. 38.🔍 Which line is missing its closing tag?
    line 1: <b>Hello, world!</b>
    line 2: <h2>Rain today</h2>
    line 3: <em>Good morning!
    (a) line 1 (b) line 3 (c) line 2
  39. 39.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Mango</li>
    </ul>
  40. 40.Which of these is true of a code editor? (a) opens web pages for us (b) answers page requests (c) has an address bar (d) saves our .html files

Answer key

  1. 3
  2. on the browser tab
  3. True
  4. <p>
  5. <h1>
  6. turns HTML into a page
  7. Map of India
  8. Contact us
  9. 2
  10. </h2>
  11. True
  12. <ul>
  13. False
  14. False
  15. an empty tag
  16. an opening tag
  17. numbers
  18. shows line numbers
  19. About us
  20. Markup
  21. False
  22. Hello, world!
  23. <ol>
  24. 3
  25. HyperText
  26. </em>
  27. 1
  28. Yes
  29. Maths fun
  30. Riya’s Recipes
  31. <img>
  32. 4
  33. Yes
  34. in the same tab
  35. has an address bar
  36. No
  37. <h1>
  38. line 3
  39. 4
  40. saves our .html files

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