← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 942 · 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 headings are in this code?
    <h1>The red kite</h1>
    <p>Good morning!</p>
    <p>I love mangoes.</p>
  2. 2.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="150">
    (a) Our school bus (b) width (c) bus.jpg (d) An old fort
  3. 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  4. 4.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="50">
    (a) Our school bus (b) width (c) The full moon (d) moon.png
  5. 5.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h5>
  6. 6.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 6 (d) 3
  7. 7.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h4>Cricket is fun.</h4>
    <p>Cricket is fun.</p>
  8. 8.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h5> (d) <h6>
  9. 9.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h2>? (a) <h6> (b) <h5> (c) <h1> (d) <h2>
  10. 10.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
    </ul>
    (a) numbers (b) bullets
  11. 11.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  12. 12.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
  13. 13.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) news.html (b) School news (c) maths.html (d) art.html
  14. 14.True or false: <ul> shows bullet points. (a) False (b) True
  15. 15.True or false: a web browser shows pages from the web. (a) False (b) True
  16. 16.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
  17. 17.🔗 Where does this link open?
    <a href="contact.html">School news</a>
    (a) in a new tab (b) in the same tab
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>My best friend</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>The red kite</p>
  19. 19.Which of these is an opening tag? (a) </title> (b) </h1> (c) </body> (d) <body>
  20. 20.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h2> or <h4>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
  21. 21.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
  22. 22.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
  23. 23.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) My pets (c) My best friend
  24. 24.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Line (d) Link
  25. 25.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Kites fly high</p>
  26. 26.📄 Can HTML on its own make a form? (a) Yes (b) No
  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.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  29. 29.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <br> (d) <hr>
  30. 30.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="100">
    (a) Our school bus (b) fort.jpg (c) tiger.jpg (d) bus.jpg
  31. 31.Which of these is an opening tag? (a) </title> (b) </p> (c) </li> (d) <h1>
  32. 32.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  33. 33.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>I love mangoes.</p>
    <!-- <p>Rain today</p> -->
    (a) My pets (b) Rain today (c) I love mangoes.
  34. 34.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) </strong> (c) <\strong> (d) <strong/>
  35. 35.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
  36. 36.True or false: in <img>, src tells which image to load. (a) True (b) False
  37. 37.🖼️ Which attribute of <img> tells which image to load? (a) src (b) width (c) height (d) alt
  38. 38.True or false: <title> goes in the body. (a) True (b) False
  39. 39.📋 What number does the browser show next to “Litchi”?
    <ol start="4">
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Grapes</li>
    </ol>
  40. 40.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <pic> (d) <a>

Answer key

  1. 1
  2. Our school bus
  3. a closing tag
  4. The full moon
  5. <h6>
  6. 1
  7. 2
  8. <h2>
  9. <h6>
  10. bullets
  11. in a new tab
  12. <h5>
  13. maths.html
  14. True
  15. True
  16. a code editor
  17. in the same tab
  18. 1
  19. <body>
  20. <h1>
  21. <
  22. 2
  23. My best friend
  24. Language
  25. 2
  26. Yes
  27. an empty tag
  28. Yes
  29. <ol>
  30. bus.jpg
  31. <h1>
  32. in the head
  33. Rain today
  34. </strong>
  35. a web browser
  36. True
  37. src
  38. False
  39. 8
  40. <img>

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