← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 422 · 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: a web server hosts websites online. (a) False (b) True
  2. 2.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    (a) Our school trip (b) I love mangoes. (c) Rain today
  3. 3.🔠 How many heading levels does HTML have? (a) 3 (b) 6 (c) 10 (d) 4
  4. 4.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
  5. 5.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
  6. 6.Which of these is an empty tag? (a) <title> (b) <b> (c) <ul> (d) <img>
  7. 7.Which of these is a closing tag? (a) <body> (b) </li> (c) <p> (d) <h1>
  8. 8.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h5> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
  9. 9.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>Rain today</p>
    (a) My pets (b) Rain today (c) Hello, world!
  10. 10.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  11. 11.💬 Does the browser show comments on the page? (a) Yes (b) No
  12. 12.📋 What number does the browser show next to “Orange”?
    <ol start="4">
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
  13. 13.🔍 Which line is missing its closing tag?
    line 1: <h2>I love mangoes.</h2>
    line 2: <i>Hello, world!
    line 3: <b>My best friend</b>
    (a) line 3 (b) line 2 (c) line 1
  14. 14.📋 Which tag goes around each item of a list? (a) <ul> (b) <li> (c) <ol> (d) <p>
  15. 15.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  16. 16.Which of these goes in the body? (a) <img> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <title>
  17. 17.🔠 Which tag is the least important heading? (a) <h1> (b) <h6> (c) <p> (d) <h3>
  18. 18.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="100">
    (a) Our school bus (b) fort.jpg (c) bus.jpg (d) tiger.jpg
  19. 19.True or false: <h1> has a closing tag. (a) False (b) True
  20. 20.True or false: a web browser shows pages from the web. (a) True (b) False
  21. 21.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  22. 22.🔗 Which words do you click on?
    <a href="news.html">School news</a>
    (a) news.html (b) href (c) Take the quiz (d) School news
  23. 23.Which of these is an opening tag? (a) <p> (b) </body> (c) </p> (d) </b>
  24. 24.🔍 Which is the odd one out? (a) answers page requests (b) stores a website’s files (c) sends pages over the net (d) shows pages from the web
  25. 25.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h5> (d) <h4>
  26. 26.📝 What does <br> do? (a) starts a new line (b) makes text bold (c) adds a picture (d) makes a list
  27. 27.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) href (b) art.html (c) School news (d) Take the quiz
  28. 28.💬 How does an HTML comment start? (a) /* (b) // (c) # (d) <!--
  29. 29.True or false: HTML on its own can add pictures to a page. (a) False (b) True
  30. 30.💬 How does an HTML comment end? (a) --> (b) */ (c) // (d) >>
  31. 31.🖼️ Which attribute of <img> names the picture file? (a) width (b) src (c) height (d) alt
  32. 32.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>My best friend</p>
    <h2>Hello, world!</h2>
  33. 33.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  34. 34.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h4>
  35. 35.🔍 One closing tag is missing. Which one?
    <u>Good morning!</u>
    <strong>Fun facts
    <small>I love mangoes.</small>
    (a) </u> (b) </h1> (c) </small> (d) </strong>
  36. 36.Which of these is a closing tag? (a) <body> (b) <h1> (c) <b> (d) </h1>
  37. 37.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h6>? (a) <h6> (b) <h3> (c) <h2> (d) <h4>
  38. 38.Which of these is an opening tag? (a) <body> (b) </p> (c) </b> (d) </h1>
  39. 39.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Cricket is fun.</p>
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
  40. 40.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag

Answer key

  1. True
  2. Our school trip
  3. 6
  4. <ol>
  5. 1
  6. <img>
  7. </li>
  8. <h5>
  9. Hello, world!
  10. No
  11. No
  12. 9
  13. line 2
  14. <li>
  15. has a closing tag
  16. <img>
  17. <h6>
  18. bus.jpg
  19. True
  20. True
  21. in the head
  22. School news
  23. <p>
  24. shows pages from the web
  25. <h1>
  26. starts a new line
  27. School news
  28. <!--
  29. True
  30. -->
  31. src
  32. 2
  33. an empty tag
  34. <h5>
  35. </strong>
  36. </h1>
  37. <h2>
  38. <body>
  39. 3
  40. an opening tag

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