← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 341 · 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 text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) Hello, world! (c) Rain today
  2. 2.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow</p>
  3. 3.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="50">
    (a) A red kite (b) Map of India (c) kite.png (d) width
  4. 4.🖼️ 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
  5. 5.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows line numbers (c) colours code to help us (d) saves our .html files
  6. 6.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h6> or <h5>? (a) <h2> (b) <h5> (c) <h4> (d) <h6>
  7. 7.True or false: <p> has a closing tag. (a) True (b) False
  8. 8.True or false: a web browser shows pages from the web. (a) True (b) False
  9. 9.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) very big text (d) text with links
  10. 10.True or false: <li> is an empty tag. (a) True (b) False
  11. 11.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  12. 12.🔍 Which line is missing its closing tag?
    line 1: <u>I love mangoes.</u>
    line 2: <p>My pets</p>
    line 3: <h2>The red kite
    (a) line 2 (b) line 1 (c) line 3
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Our school trip</p> -->
    <!-- <p>Fun facts</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
  14. 14.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h3>Hello, world!</h3>
    <p>I love mangoes.</p>
  15. 15.True or false: <ol> is an ordered list. (a) False (b) True
  16. 16.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  17. 17.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h4>
  18. 18.True or false: <h1> has a closing tag. (a) False (b) True
  19. 19.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
  20. 20.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
    </ol>
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="50">
    (a) The full moon (b) A happy dog (c) dog.jpg (d) width
  22. 22.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
  23. 23.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  24. 24.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    (a) Cricket is fun. (b) Hello, world! (c) Our school trip
  25. 25.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <img> (d) <pic>
  26. 26.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Class 7 Blog (c) Welcome! (d) index.html
  27. 27.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ul>
  28. 28.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <h2>I love mangoes.</h2>
    <p>My pets</p>
    <p>Hello, world!</p>
  29. 29.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
  30. 30.🔗 Which address opens when you click this link?
    <a href="about.html">Art corner</a>
    (a) about.html (b) contact.html (c) https://example.com (d) Art corner
  31. 31.🔍 One closing tag is missing. Which one?
    <small>Cricket is fun.</small>
    <i>I love mangoes.</i>
    <h1>Fun facts
    (a) </small> (b) </u> (c) </h1> (d) </i>
  32. 32.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>My best friend</p>
    <!-- <p>Rain today</p> -->
    (a) My best friend (b) Rain today (c) The red kite
  33. 33.🔗 Which words do you click on?
    <a href="news.html">School news</a>
    (a) href (b) Take the quiz (c) School news (d) news.html
  34. 34.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
  35. 35.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h6> (d) <h3>
  36. 36.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  37. 37.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Sky is blue<br>Kites fly high</p>
  38. 38.🔗 Which attribute holds the address of a link? (a) alt (b) id (c) src (d) href
  39. 39.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) </h3> (c) <\h3> (d) <h3>
  40. 40.True or false: HTML on its own cannot add up two numbers. (a) True (b) False

Answer key

  1. Rain today
  2. 2
  3. A red kite
  4. The full moon
  5. turns HTML into a page
  6. <h2>
  7. True
  8. True
  9. text with links
  10. False
  11. bullets
  12. line 3
  13. 2
  14. 2
  15. True
  16. <ul>
  17. <h1>
  18. True
  19. 1
  20. 2
  21. A happy dog
  22. <ol>
  23. False
  24. Our school trip
  25. <img>
  26. Class 7 Blog
  27. 4
  28. 4
  29. a web browser
  30. about.html
  31. </h1>
  32. Rain today
  33. School news
  34. a code editor
  35. <h6>
  36. 2
  37. 3
  38. href
  39. </h3>
  40. True

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