← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 403 · 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.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="200">
    (a) width (b) dog.jpg (c) The full moon (d) A happy dog
  2. 2.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
  3. 3.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ul>
    (a) numbers (b) bullets
  4. 4.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="350">
    (a) A red kite (b) map.png (c) cake.jpg (d) kite.png
  5. 5.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h5>? (a) <h3> (b) <h6> (c) <h4> (d) <h5>
  6. 6.📄 Can HTML on its own make tables? (a) Yes (b) No
  7. 7.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="100">
    (a) width (b) moon.png (c) The full moon (d) Our school bus
  8. 8.True or false: <ul> is an unordered list. (a) False (b) True
  9. 9.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
  10. 10.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Fun facts</p>
    <p>My pets</p>
    <p>My best friend</p>
    <p>I love mangoes.</p>
  11. 11.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
  12. 12.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  13. 13.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="300">
  14. 14.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  15. 15.🏷️ Which is the closing tag for <i>? (a) </i> (b) <\i> (c) <i> (d) <i/>
  16. 16.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Litchi</li>
    </ul>
    (a) bullets (b) numbers
  17. 17.📋 Does this list show bullets or numbers?
    <ol>
      <li>Guava</li>
      <li>Grapes</li>
    </ol>
    (a) numbers (b) bullets
  18. 18.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) maths.html (b) news.html (c) art.html (d) School news
  19. 19.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) hosts websites online (d) saves our .html files
  20. 20.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  21. 21.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Fun facts</p>
  22. 22.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
  23. 23.True or false: <table> goes in the head. (a) True (b) False
  24. 24.💬 Does the browser show comments on the page? (a) No (b) Yes
  25. 25.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
  26. 26.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Fun facts</p>
    (a) Fun facts (b) The red kite (c) Good morning! (d) Cricket is fun.
  27. 27.🔗 Which words do you click on?
    <a href="quiz.html">Contact us</a>
    (a) href (b) Contact us (c) Visit the site (d) quiz.html
  28. 28.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    (a) Our school trip (b) My pets (c) The red kite
  29. 29.💬 How does an HTML comment start? (a) # (b) // (c) <!-- (d) /*
  30. 30.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  31. 31.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  32. 32.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) turns HTML into a page (d) answers page requests
  33. 33.🔗 Which words do you click on?
    <a href="about.html">Take the quiz</a>
    (a) href (b) Take the quiz (c) Play games (d) about.html
  34. 34.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Laptop (d) Link
  35. 35.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the doctype (d) the title
  36. 36.True or false: a code editor sends pages over the net. (a) True (b) False
  37. 37.True or false: <ul> goes inside ul or ol. (a) False (b) True
  38. 38.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) element (d) attribute
  39. 39.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  40. 40.🔗 What does target="_blank" do to a link? (a) makes it bold (b) makes it blank (c) opens it in a new tab (d) hides the link

Answer key

  1. A happy dog
  2. a web browser
  3. bullets
  4. kite.png
  5. <h6>
  6. Yes
  7. The full moon
  8. True
  9. <ol>
  10. 1
  11. <h1>
  12. False
  13. 300
  14. <ol>
  15. </i>
  16. bullets
  17. numbers
  18. maths.html
  19. hosts websites online
  20. in the head
  21. 2
  22. <
  23. False
  24. No
  25. 4
  26. Cricket is fun.
  27. Contact us
  28. The red kite
  29. <!--
  30. No
  31. Yes
  32. turns HTML into a page
  33. Take the quiz
  34. Language
  35. the body
  36. False
  37. False
  38. element
  39. an empty tag
  40. opens it in a new tab

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