← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 348 · 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) 4 (b) 3 (c) 10 (d) 6
  2. 2.True or false: <meta charset="utf-8"> goes in the head. (a) True (b) False
  3. 3.🔍 One closing tag is missing. Which one?
    <h1>Rain today</h1>
    <p>Good morning!</p>
    <h3>I love mangoes.
    (a) </h3> (b) </small> (c) </p> (d) </h1>
  4. 4.True or false: <ol> shows bullet points. (a) True (b) False
  5. 5.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h5> or <h6>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
  6. 6.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>My pets</p>
    <h2>My best friend</h2>
    <h2>My best friend</h2>
    <p>The red kite</p>
  7. 7.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) contact.html (b) Art corner (c) games.html (d) about.html
  8. 8.True or false: <a> goes in the head. (a) False (b) True
  9. 9.📝 What do we need to write HTML? (a) a paintbrush (b) a printer (c) a microphone (d) a plain text editor
  10. 10.💬 How does an HTML comment end? (a) // (b) >> (c) */ (d) -->
  11. 11.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) index.html (b) I like to read. (c) Art Gallery (d) Welcome!
  12. 12.🌐 Which one opens web pages for us? (a) a code editor (b) a web browser (c) a web server
  13. 13.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  14. 14.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
  15. 15.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
  16. 16.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Fun facts</p>
    <h2>I love mangoes.</h2>
    <p>I love mangoes.</p>
    <p>Good morning!</p>
  17. 17.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  18. 18.🔍 Which is the odd one out? (a) turns HTML into a page (b) opens web pages for us (c) shows pages from the web (d) colours code to help us
  19. 19.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>Fun facts</p>
    <!-- <p>Hello, world!</p> -->
  20. 20.Which of these has a closing tag? (a) <br> (b) <img> (c) <input> (d) <p>
  21. 21.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Mango</li>
    </ul>
  22. 22.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <p>I love mangoes.</p>
  23. 23.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
    (a) bullets (b) numbers
  24. 24.💬 How does an HTML comment start? (a) # (b) <!-- (c) /* (d) //
  25. 25.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  26. 26.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 6 (d) 10
  27. 27.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  28. 28.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
  29. 29.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  30. 30.Which of these is an opening tag? (a) </li> (b) </b> (c) </title> (d) <p>
  31. 31.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red<br>Stars shine<br>Birds sing</p>
  32. 32.🔍 Which line is missing its closing tag?
    line 1: <h3>Fun facts</h3>
    line 2: <small>The red kite
    line 3: <p>Our school trip</p>
    (a) line 2 (b) line 1 (c) line 3
  33. 33.True or false: in <img>, width sets how wide it is. (a) True (b) False
  34. 34.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  35. 35.🔍 Which line is missing its closing tag?
    line 1: <b>Our school trip</b>
    line 2: <h3>Fun facts</h3>
    line 3: <p>Rain today
    (a) line 2 (b) line 3 (c) line 1
  36. 36.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <p>Our school trip</p>
  37. 37.True or false: in <img>, alt describes the picture. (a) True (b) False
  38. 38.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    (a) I love mangoes. (b) Our school trip (c) My pets (d) My best friend
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
  40. 40.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ul>

Answer key

  1. 6
  2. True
  3. </h3>
  4. False
  5. <h6>
  6. 3
  7. games.html
  8. False
  9. a plain text editor
  10. -->
  11. Art Gallery
  12. a web browser
  13. No
  14. a web browser
  15. <a>
  16. 4
  17. the body
  18. colours code to help us
  19. 2
  20. <p>
  21. 2
  22. 1
  23. numbers
  24. <!--
  25. Yes
  26. 1
  27. an empty tag
  28. on the browser tab
  29. False
  30. <p>
  31. 4
  32. line 2
  33. True
  34. an empty tag
  35. line 3
  36. 3
  37. True
  38. My best friend
  39. 2
  40. 4

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