← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 979 · 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.📄 Can HTML on its own make tables? (a) Yes (b) No
  2. 2.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) { (d) (
  3. 3.True or false: HTML on its own cannot pick a random number. (a) True (b) False
  4. 4.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to make it bigger (d) to describe the image
  5. 5.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  6. 6.📋 Does this list show bullets or numbers?
    <ol>
      <li>Papaya</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  7. 7.True or false: HTML on its own can make links to pages. (a) True (b) False
  8. 8.Which of these is true of a web browser? (a) shows line numbers (b) answers page requests (c) colours code to help us (d) shows pages from the web
  9. 9.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="100">
    (a) fort.jpg (b) kite.png (c) An old fort (d) tiger.jpg
  10. 10.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <ul> (d) <hr>
  11. 11.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>The red kite</p> -->
    <!-- <p>Our school trip</p> -->
  12. 12.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Good morning!</p>
    <p>My best friend</p>
    (a) My best friend (b) Good morning! (c) Hello, world! (d) I love mangoes.
  13. 13.Which of these is true of a web server? (a) sends pages over the net (b) has an address bar (c) shows line numbers (d) opens web pages for us
  14. 14.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>I love mangoes.</p> -->
  15. 15.🔗 Which words do you click on?
    <a href="news.html">Play games</a>
    (a) href (b) news.html (c) Play games (d) About us
  16. 16.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h6> (d) <h1>
  17. 17.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
  18. 18.True or false: <h1> goes in the head. (a) False (b) True
  19. 19.🔗 Where does this link open?
    <a href="art.html">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  20. 20.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    (a) Fun facts (b) Hello, world! (c) I love mangoes.
  21. 21.🏷️ Which is the closing tag for <u>? (a) <\u> (b) <u> (c) </u> (d) <u/>
  22. 22.📋 Which list tag is an unordered list? (a) <li> (b) <ol> (c) <ul>
  23. 23.🏷️ Which is the closing tag for <p>? (a) </p> (b) <\p> (c) <p> (d) <p/>
  24. 24.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
  25. 25.Which of these goes in the head? (a) <p> (b) <ul> (c) <a> (d) <style>
  26. 26.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) href (b) Take the quiz (c) School news (d) art.html
  27. 27.True or false: <h1> is an empty tag. (a) False (b) True
  28. 28.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>Cricket is fun.</h2>
    <h2>My best friend</h2>
    <p>Hello, world!</p>
  29. 29.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h3> or <h1>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
  30. 30.📋 Which list tag lists things in any order? (a) <li> (b) <ul> (c) <ol>
  31. 31.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
  32. 32.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  33. 33.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h3>My best friend</h3>
    <h2>My pets</h2>
  34. 34.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Jamun</li>
    </ul>
  35. 35.📄 Can HTML on its own make headings? (a) Yes (b) No
  36. 36.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
  37. 37.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) map.png (b) Birthday cake (c) width (d) Map of India
  38. 38.🔗 Which address opens when you click this link?
    <a href="news.html">Maths fun</a>
    (a) Maths fun (b) news.html (c) quiz.html (d) games.html
  39. 39.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) Maths fun (b) Art corner (c) href (d) games.html
  40. 40.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h4>? (a) <h3> (b) <h4> (c) <h5> (d) <h6>

Answer key

  1. Yes
  2. <
  3. True
  4. to describe the image
  5. has a closing tag
  6. numbers
  7. True
  8. shows pages from the web
  9. fort.jpg
  10. <ol>
  11. 1
  12. Hello, world!
  13. sends pages over the net
  14. 1
  15. Play games
  16. <h6>
  17. <h1>
  18. False
  19. in the same tab
  20. I love mangoes.
  21. </u>
  22. <ul>
  23. </p>
  24. an attribute
  25. <style>
  26. School news
  27. False
  28. 2
  29. <h1>
  30. <ul>
  31. <li>
  32. a closing tag
  33. 3
  34. 2
  35. Yes
  36. in the body
  37. Map of India
  38. news.html
  39. Maths fun
  40. <h3>

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