← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 754 · 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.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  2. 2.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) index.html (b) Class 7 Blog (c) All about me (d) Thanks for visiting.
  3. 3.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
  4. 4.True or false: a web browser saves our .html files. (a) True (b) False
  5. 5.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) width (b) A tiger asleep (c) A red kite (d) tiger.jpg
  6. 6.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
  7. 7.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a new line (c) as a dot (d) as 5 spaces
  8. 8.📄 Can HTML on its own keep a high score? (a) Yes (b) No
  9. 9.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="400">
    (a) A tiger asleep (b) A red kite (c) tiger.jpg (d) width
  10. 10.🔢 In a basic web page file, which comes first: “</body>” or “</head>”? (a) </head> (b) </body>
  11. 11.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
  12. 12.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>My best friend</p>
    <p>Our school trip</p>
    (a) I love mangoes. (b) My best friend (c) Our school trip (d) Hello, world!
  13. 13.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  14. 14.Which of these is true of a web server? (a) shows pages from the web (b) turns HTML into a page (c) answers page requests (d) has an address bar
  15. 15.True or false: <img> has a closing tag. (a) False (b) True
  16. 16.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) <h2/> (d) </h2>
  17. 17.True or false: <ul> is an ordered list. (a) False (b) True
  18. 18.📋 Which list tag is an ordered list? (a) <ol> (b) <li> (c) <ul>
  19. 19.True or false: <h1> is an empty tag. (a) False (b) True
  20. 20.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) shows line numbers (d) sends pages over the net
  21. 21.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
  22. 22.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  23. 23.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  24. 24.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  25. 25.Which of these is a closing tag? (a) <p> (b) <li> (c) <h1> (d) </b>
  26. 26.🔍 Which line is missing its closing tag?
    line 1: <strong>Our school trip
    line 2: <small>I love mangoes.</small>
    line 3: <h2>Good morning!</h2>
    (a) line 2 (b) line 1 (c) line 3
  27. 27.💬 How does an HTML comment start? (a) /* (b) <!-- (c) // (d) #
  28. 28.🔠 Are headings shown in bold by default? (a) Yes (b) No
  29. 29.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ul>
  30. 30.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h2>Cricket is fun.</h2>
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
    <p>My pets</p>
  31. 31.True or false: a code editor answers page requests. (a) True (b) False
  32. 32.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  33. 33.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Thanks for visiting. (b) body (c) My Hobbies (d) Planets
  34. 34.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  35. 35.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) My pets (c) Good morning!
  36. 36.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
  37. 37.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
    <p>Rain today</p>
    <p>Our school trip</p>
    <p>Good morning!</p>
  38. 38.True or false: <style> goes in the body. (a) True (b) False
  39. 39.🖼️ Which picture file does the browser load?
    <img src="dog.jpg" alt="A happy dog" width="100">
    (a) A happy dog (b) moon.png (c) bus.jpg (d) dog.jpg
  40. 40.True or false: HTML on its own cannot make headings. (a) True (b) False

Answer key

  1. <ol>
  2. Class 7 Blog
  3. 1
  4. False
  5. A tiger asleep
  6. starts a new line
  7. as one space
  8. No
  9. A tiger asleep
  10. </head>
  11. HyperText
  12. Hello, world!
  13. <ul>
  14. answers page requests
  15. False
  16. </h2>
  17. False
  18. <ol>
  19. False
  20. opens web pages for us
  21. <ul>
  22. No
  23. bullets
  24. <h5>
  25. </b>
  26. line 1
  27. <!--
  28. Yes
  29. 4
  30. 2
  31. False
  32. No
  33. Planets
  34. Yes
  35. My pets
  36. 6
  37. 4
  38. False
  39. dog.jpg
  40. False

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