← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 6 · 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 heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
  2. 2.💬 Which text will NOT show on the page?
    <!-- <p>Fun facts</p> -->
    <p>My pets</p>
    <p>Cricket is fun.</p>
    (a) Fun facts (b) Cricket is fun. (c) My pets
  3. 3.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  4. 4.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  5. 5.True or false: <ul> shows bullet points. (a) True (b) False
  6. 6.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
  7. 7.🔍 One closing tag is missing. Which one?
    <p>Hello, world!</p>
    <u>The red kite
    <h1>I love mangoes.</h1>
    (a) </u> (b) </p> (c) </h1> (d) </small>
  8. 8.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>Rain today</p>
    <p>Hello, world!</p>
  10. 10.🔗 What does HyperText mean? (a) text in colour (b) very big text (c) text with links (d) secret text
  11. 11.🏷️ Which is the closing tag for <small>? (a) <small/> (b) <small> (c) <\small> (d) </small>
  12. 12.True or false: <br> is an empty tag. (a) False (b) True
  13. 13.🔗 Where does this link open?
    <a href="games.html" target="_blank">Visit the site</a>
    (a) in a new tab (b) in the same tab
  14. 14.True or false: <li> is an unordered list. (a) True (b) False
  15. 15.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
  16. 16.🔗 Where does this link open?
    <a href="maths.html">Contact us</a>
    (a) in a new tab (b) in the same tab
  17. 17.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) body (c) Thanks for visiting. (d) Match report
  18. 18.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as a new line (c) as a dot (d) as one space
  19. 19.True or false: <li> shows bullet points. (a) False (b) True
  20. 20.🔠 Are headings shown in bold by default? (a) Yes (b) No
  21. 21.Which of these is a closing tag? (a) </h1> (b) <p> (c) <h1> (d) <li>
  22. 22.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <p> (c) <style> (d) <title>
  23. 23.📄 Can HTML on its own make headings? (a) No (b) Yes
  24. 24.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My pets</p> -->
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
  25. 25.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  26. 26.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
  27. 27.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  28. 28.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
  29. 29.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h6> or <h3>? (a) <h5> (b) <h3> (c) <h4> (d) <h6>
  30. 30.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h5> or <h1>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
  31. 31.📋 What number does the browser show next to “Orange”?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  32. 32.Which of these is a closing tag? (a) </title> (b) <b> (c) <title> (d) <p>
  33. 33.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
  34. 34.🔢 In a basic web page file, which comes LAST? (a) <body> (b) <html> (c) </html> (d) <!DOCTYPE html>
  35. 35.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
  36. 36.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="150">
  37. 37.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <h2>My pets</h2>
    <p>I love mangoes.</p>
  38. 38.Which of these is an opening tag? (a) <title> (b) </title> (c) </li> (d) </p>
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
  40. 40.🔗 Where does this link open?
    <a href="news.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab

Answer key

  1. <h1>
  2. Fun facts
  3. in the head
  4. 5
  5. True
  6. 1
  7. </u>
  8. <ul>
  9. 2
  10. text with links
  11. </small>
  12. True
  13. in a new tab
  14. False
  15. <img>
  16. in the same tab
  17. Match report
  18. as one space
  19. False
  20. Yes
  21. </h1>
  22. <p>
  23. Yes
  24. 2
  25. Yes
  26. a web browser
  27. numbers
  28. 2
  29. <h6>
  30. <h6>
  31. 3
  32. </title>
  33. <ul>
  34. </html>
  35. a web browser
  36. 150
  37. 2
  38. <title>
  39. 3
  40. in a new tab

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