← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 259 · 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.True or false: <img> has a closing tag. (a) True (b) False
  2. 2.📋 Does this list show bullets or numbers?
    <ol>
      <li>Banana</li>
      <li>Jamun</li>
    </ol>
    (a) bullets (b) numbers
  3. 3.🔗 Which address opens when you click this link?
    <a href="maths.html">Art corner</a>
    (a) art.html (b) Art corner (c) news.html (d) maths.html
  4. 4.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) Good morning! (c) I love mangoes. (d) Hello, world!
  5. 5.📄 Can HTML on its own make headings? (a) Yes (b) No
  6. 6.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="300">
    (a) width (b) kite.png (c) A red kite (d) Map of India
  7. 7.True or false: <li> is one item of a list. (a) False (b) True
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="150">
    (a) moon.png (b) width (c) The full moon (d) Our school bus
  9. 9.💬 Why do coders write comments? (a) to add colour (b) to make links (c) to show pictures (d) to leave notes
  10. 10.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
    (a) A tiger asleep (b) tiger.jpg (c) kite.png (d) map.png
  11. 11.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  12. 12.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Orange</li>
    </ul>
  13. 13.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <h2>Our school trip</h2>
    <p>Cricket is fun.</p>
    <h2>Fun facts</h2>
  14. 14.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h2>? (a) <h4> (b) <h3> (c) <h6> (d) <h2>
  15. 15.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>Our school trip</p> -->
    <!-- <p>My best friend</p> -->
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
  16. 16.🔍 One closing tag is missing. Which one?
    <h1>The red kite
    <em>Good morning!</em>
    <b>Rain today</b>
    (a) </em> (b) </b> (c) </strong> (d) </h1>
  17. 17.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ul> (c) <ol> (d) <br>
  18. 18.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) quiz.html (b) Contact us (c) About us (d) href
  19. 19.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>My best friend</h2>
    <p>Rain today</p>
    <h2>Rain today</h2>
    <p>Hello, world!</p>
  20. 20.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="400">
    (a) Our school bus (b) bus.jpg (c) An old fort (d) width
  21. 21.Which of these is true of a web server? (a) hosts websites online (b) shows pages from the web (c) opens web pages for us (d) turns HTML into a page
  22. 22.🔗 Which attribute holds the address of a link? (a) href (b) src (c) id (d) alt
  23. 23.True or false: <img> goes in the head. (a) False (b) True
  24. 24.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    (a) Hello, world! (b) I love mangoes. (c) My pets (d) Our school trip
  25. 25.💬 Does the browser show comments on the page? (a) No (b) Yes
  26. 26.True or false: <ul> shows bullet points. (a) True (b) False
  27. 27.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Hello, world!</p>
    <!-- <p>Good morning!</p> -->
    <p>The red kite</p>
    (a) Good morning! (b) Hello, world! (c) Rain today (d) The red kite
  28. 28.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h2>? (a) <h2> (b) <h1> (c) <h4> (d) <h5>
  29. 29.Which of these is a closing tag? (a) </h1> (b) <li> (c) <title> (d) <body>
  30. 30.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Fun facts</p>
    (a) I love mangoes. (b) Our school trip (c) Cricket is fun. (d) Fun facts
  31. 31.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>I love mangoes.</h2>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
  32. 32.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <\p> (c) </p> (d) <p>
  33. 33.🔍 One closing tag is missing. Which one?
    <small>My pets</small>
    <strong>Our school trip
    <u>The red kite</u>
    (a) </h3> (b) </small> (c) </strong> (d) </u>
  34. 34.🔍 Which is the odd one out? (a) sends pages over the net (b) is where we type code (c) shows line numbers (d) colours code to help us
  35. 35.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) element (c) address (d) editor
  36. 36.🏷️ HTML marks up text using ___. (a) keys (b) tags (c) wires (d) pixels
  37. 37.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 3 (d) 1
  38. 38.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <p> (d) <a>
  39. 39.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Litchi</li>
    </ul>
    (a) numbers (b) bullets
  40. 40.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser

Answer key

  1. False
  2. numbers
  3. maths.html
  4. Hello, world!
  5. Yes
  6. A red kite
  7. True
  8. The full moon
  9. to leave notes
  10. tiger.jpg
  11. 2
  12. 4
  13. 2
  14. <h2>
  15. 1
  16. </h1>
  17. <ul>
  18. About us
  19. 3
  20. Our school bus
  21. hosts websites online
  22. href
  23. False
  24. Our school trip
  25. No
  26. True
  27. Good morning!
  28. <h5>
  29. </h1>
  30. I love mangoes.
  31. 3
  32. </p>
  33. </strong>
  34. sends pages over the net
  35. element
  36. tags
  37. 1
  38. <img>
  39. bullets
  40. a web server

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