← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 344 · 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 line is missing its closing tag?
    line 1: <h3>I love mangoes.
    line 2: <small>Fun facts</small>
    line 3: <u>Hello, world!</u>
    (a) line 2 (b) line 1 (c) line 3
  2. 2.🔗 Which words do you click on?
    <a href="news.html">Maths fun</a>
    (a) Art corner (b) href (c) Maths fun (d) news.html
  3. 3.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Banana</li>
    </ul>
  4. 4.🔍 Which line is missing its closing tag?
    line 1: <u>My best friend
    line 2: <h1>My pets</h1>
    line 3: <b>Our school trip</b>
    (a) line 3 (b) line 2 (c) line 1
  5. 5.🔍 Which line is missing its closing tag?
    line 1: <h2>Good morning!
    line 2: <i>Our school trip</i>
    line 3: <h1>My pets</h1>
    (a) line 3 (b) line 1 (c) line 2
  6. 6.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
  7. 7.True or false: <li> is an empty tag. (a) True (b) False
  8. 8.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) High Tech (d) Home Text
  9. 9.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  10. 10.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
  11. 11.📋 What number does the browser show next to “Orange”?
    <ol start="6">
      <li>Banana</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Mango</li>
    </ol>
  12. 12.🔍 Which line is missing its closing tag?
    line 1: <h3>The red kite</h3>
    line 2: <small>Our school trip
    line 3: <h2>I love mangoes.</h2>
    (a) line 1 (b) line 3 (c) line 2
  13. 13.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  14. 14.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h3>I love mangoes.</h3>
    <p>My pets</p>
  15. 15.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Mango</li>
    </ul>
    (a) numbers (b) bullets
  16. 16.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  17. 17.📋 What number does the browser show next to “Guava”?
    <ol start="3">
      <li>Papaya</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Grapes</li>
    </ol>
  18. 18.Which of these is true of a code editor? (a) is where we type code (b) opens web pages for us (c) sends pages over the net (d) shows pages from the web
  19. 19.🔗 Which address opens when you click this link?
    <a href="contact.html">Art corner</a>
    (a) https://example.com (b) maths.html (c) Art corner (d) contact.html
  20. 20.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) about.html (b) Play games (c) quiz.html (d) games.html
  21. 21.🔗 Where does this link open?
    <a href="contact.html">Maths fun</a>
    (a) in the same tab (b) in a new tab
  22. 22.True or false: a code editor has an address bar. (a) True (b) False
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Rivers flow<br>Kites fly high<br>Stars shine</p>
  24. 24.🔍 One closing tag is missing. Which one?
    <strong>My best friend</strong>
    <b>I love mangoes.
    <h1>The red kite</h1>
    (a) </strong> (b) </h1> (c) </i> (d) </b>
  25. 25.True or false: a web browser colours code to help us. (a) False (b) True
  26. 26.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ul>
  27. 27.🔠 Are headings shown in bold by default? (a) Yes (b) No
  28. 28.🔗 Which words do you click on?
    <a href="maths.html">Maths fun</a>
    (a) Maths fun (b) Art corner (c) href (d) maths.html
  29. 29.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Sky is blue<br>Roses are red</p>
  30. 30.True or false: in <img>, alt is read by screen readers. (a) False (b) True
  31. 31.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <a href="about.html">
  32. 32.Which of these is an empty tag? (a) <ul> (b) <input> (c) <li> (d) <b>
  33. 33.Which of these is true of a code editor? (a) opens web pages for us (b) shows line numbers (c) has an address bar (d) stores a website’s files
  34. 34.True or false: in <img>, height sets how tall it is. (a) False (b) True
  35. 35.🔍 One closing tag is missing. Which one?
    <h1>Cricket is fun.
    <em>Rain today</em>
    <small>My pets</small>
    (a) </h1> (b) </small> (c) </u> (d) </em>
  36. 36.Which of these goes in the head? (a) <p> (b) <meta charset="utf-8"> (c) <h1> (d) <img>
  37. 37.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
  38. 38.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
  39. 39.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h4>? (a) <h2> (b) <h4> (c) <h3> (d) <h1>
  40. 40.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="350">
    (a) A happy dog (b) The full moon (c) width (d) dog.jpg

Answer key

  1. line 1
  2. Maths fun
  3. 4
  4. line 1
  5. line 1
  6. <h1>
  7. False
  8. HyperText
  9. in the body
  10. <ul>
  11. 7
  12. line 2
  13. an opening tag
  14. 2
  15. bullets
  16. in the body
  17. 7
  18. is where we type code
  19. contact.html
  20. quiz.html
  21. in the same tab
  22. False
  23. 4
  24. </b>
  25. False
  26. 3
  27. Yes
  28. Maths fun
  29. 3
  30. True
  31. <a href="about.html">
  32. <input>
  33. shows line numbers
  34. True
  35. </h1>
  36. <meta charset="utf-8">
  37. a code editor
  38. a web browser
  39. <h1>
  40. A happy dog

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