← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 150 · 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 paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
  2. 2.True or false: HTML on its own cannot make a form. (a) False (b) True
  3. 3.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <ul> (d) <li>
  4. 4.🔢 In a basic web page file, which comes first: “</body>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </body>
  5. 5.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="350">
    (a) fort.jpg (b) Our school bus (c) bus.jpg (d) tiger.jpg
  6. 6.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Grapes</li>
    </ul>
    (a) numbers (b) bullets
  7. 7.Which of these is true of a web server? (a) stores a website’s files (b) colours code to help us (c) saves our .html files (d) is where we type code
  8. 8.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <h2>I love mangoes.</h2>
    <h2>Cricket is fun.</h2>
    <p>Good morning!</p>
    <p>My best friend</p>
  9. 9.True or false: <ul> lists steps in order. (a) True (b) False
  10. 10.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  11. 11.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
  12. 12.True or false: <ul> has a closing tag. (a) False (b) True
  13. 13.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
    (a) The red kite (b) My best friend (c) Fun facts
  14. 14.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>I love mangoes.</h2>
    <h2>I love mangoes.</h2>
    <h2>Good morning!</h2>
    <h2>Fun facts</h2>
    <p>Cricket is fun.</p>
  15. 15.🔍 One closing tag is missing. Which one?
    <h1>I love mangoes.</h1>
    <i>Our school trip
    <strong>My pets</strong>
    (a) </i> (b) </strong> (c) </h1> (d) </b>
  16. 16.🔍 One closing tag is missing. Which one?
    <i>My pets</i>
    <h1>Hello, world!
    <p>Rain today</p>
    (a) </p> (b) </b> (c) </h1> (d) </i>
  17. 17.🔗 Where does this link open?
    <a href="news.html">Maths fun</a>
    (a) in the same tab (b) in a new tab
  18. 18.Which of these is true of a web server? (a) shows line numbers (b) sends pages over the net (c) opens web pages for us (d) colours code to help us
  19. 19.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Easy snacks (c) index.html (d) I like to read.
  20. 20.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>Rain today</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Cricket is fun.</p> -->
  21. 21.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
  22. 22.Which of these is true of a web browser? (a) saves our .html files (b) shows pages from the web (c) hosts websites online (d) sends pages over the net
  23. 23.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
  24. 24.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
  25. 25.🔗 Which words do you click on?
    <a href="about.html">Visit the site</a>
    (a) Maths fun (b) about.html (c) Visit the site (d) href
  26. 26.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Good morning! (c) My best friend (d) Cricket is fun.
  27. 27.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) in a big heading (d) at the bottom
  28. 28.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <h2>Our school trip</h2>
    <p>My best friend</p>
  29. 29.True or false: <p> goes in the body. (a) False (b) True
  30. 30.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <p>Our school trip</p>
    <p>My pets</p>
  31. 31.🏷️ Which is the closing tag for <p>? (a) <p> (b) </p> (c) <\p> (d) <p/>
  32. 32.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h1> (d) <h3>
  33. 33.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine<br>Birds sing<br>Kites fly high</p>
  35. 35.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 10 (d) 4
  36. 36.🔍 One closing tag is missing. Which one?
    <h1>My best friend</h1>
    <h2>My pets
    <p>Rain today</p>
    (a) </h1> (b) </h2> (c) </h3> (d) </p>
  37. 37.🔗 Which words do you click on?
    <a href="quiz.html">Contact us</a>
    (a) Contact us (b) href (c) quiz.html (d) Visit the site
  38. 38.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Rain today</p>
    <!-- <p>Fun facts</p> -->
    <!-- <p>Cricket is fun.</p> -->
  40. 40.Which of these is an opening tag? (a) </body> (b) </b> (c) </p> (d) <title>

Answer key

  1. 1
  2. False
  3. <li>
  4. <!DOCTYPE html>
  5. bus.jpg
  6. bullets
  7. stores a website’s files
  8. 4
  9. False
  10. in the head
  11. <h5>
  12. True
  13. My best friend
  14. 2
  15. </i>
  16. </h1>
  17. in the same tab
  18. sends pages over the net
  19. Class 7 Blog
  20. 2
  21. <h1>
  22. shows pages from the web
  23. <h2>
  24. <!--
  25. Visit the site
  26. Good morning!
  27. on the browser tab
  28. 2
  29. True
  30. 4
  31. </p>
  32. <h6>
  33. an empty tag
  34. 4
  35. 6
  36. </h2>
  37. Contact us
  38. an empty tag
  39. 1
  40. <title>

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