← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 99 · 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 tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
  2. 2.🔍 Which line is missing its closing tag?
    line 1: <em>Fun facts</em>
    line 2: <h3>The red kite
    line 3: <strong>Hello, world!</strong>
    (a) line 3 (b) line 1 (c) line 2
  3. 3.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
  4. 4.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    (a) My pets (b) Our school trip (c) I love mangoes.
  5. 5.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <p>Good morning!</p>
  6. 6.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <h2>Fun facts</h2>
    <h2>Good morning!</h2>
    <h2>The red kite</h2>
  7. 7.True or false: <li> is an unordered list. (a) False (b) True
  8. 8.🔗 Which address opens when you click this link?
    <a href="maths.html">Contact us</a>
    (a) Contact us (b) news.html (c) art.html (d) maths.html
  9. 9.True or false: <a> goes in the head. (a) False (b) True
  10. 10.True or false: <b> is an empty tag. (a) True (b) False
  11. 11.🔠 Are headings shown in bold by default? (a) Yes (b) No
  12. 12.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
  13. 13.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
  14. 14.🔗 Which words do you click on?
    <a href="about.html">Art corner</a>
    (a) Art corner (b) href (c) about.html (d) School news
  15. 15.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="150">
    (a) Our school bus (b) width (c) moon.png (d) The full moon
  16. 16.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h2>? (a) <h6> (b) <h2> (c) <h4> (d) <h1>
  17. 17.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Rain today</p>
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
  18. 18.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Good morning!</p>
    (a) Good morning! (b) Hello, world! (c) I love mangoes. (d) My best friend
  19. 19.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
  20. 20.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h2> or <h4>? (a) <h6> (b) <h2> (c) <h4> (d) <h5>
  21. 21.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
  22. 22.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h3> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h5>
  23. 23.Which of these has a closing tag? (a) <meta> (b) <br> (c) <li> (d) <hr>
  24. 24.📝 What does <br> do? (a) makes text bold (b) makes a list (c) adds a picture (d) starts a new line
  25. 25.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    (a) Cricket is fun. (b) Our school trip (c) Hello, world!
  26. 26.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
  27. 27.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h2>? (a) <h2> (b) <h3> (c) <h4> (d) <h1>
  28. 28.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h6>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
  29. 29.📋 What number does the browser show next to “Mango”?
    <ol>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  30. 30.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  31. 31.🔗 Where does this link open?
    <a href="games.html">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  32. 32.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Our school trip</p> -->
  33. 33.Which of these is an opening tag? (a) </b> (b) </h1> (c) <h1> (d) </p>
  34. 34.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) is where we type code (d) colours code to help us
  35. 35.True or false: <ul> lists things in any order. (a) False (b) True
  36. 36.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  37. 37.Which of these is an opening tag? (a) </li> (b) </body> (c) </h1> (d) <b>
  38. 38.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <h3>Hello, world!</h3>
    <h3>Our school trip</h3>
    <h4>I love mangoes.</h4>
  39. 39.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Good morning!</p> -->
    <p>Hello, world!</p>
    <!-- <p>Fun facts</p> -->
  40. 40.True or false: a web browser shows pages from the web. (a) True (b) False

Answer key

  1. <h1>
  2. line 2
  3. <h1>
  4. I love mangoes.
  5. 3
  6. 1
  7. False
  8. maths.html
  9. False
  10. False
  11. Yes
  12. -->
  13. <ul>
  14. Art corner
  15. The full moon
  16. <h1>
  17. 3
  18. I love mangoes.
  19. <li>
  20. <h6>
  21. 6
  22. <h5>
  23. <li>
  24. starts a new line
  25. Hello, world!
  26. <h6>
  27. <h4>
  28. <h1>
  29. 2
  30. <img>
  31. in the same tab
  32. 1
  33. <h1>
  34. has an address bar
  35. True
  36. a closing tag
  37. <b>
  38. 4
  39. 1
  40. True

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