← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 170 · 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 shows pages from the web. (a) True (b) False
  2. 2.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
  3. 3.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  4. 4.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
  5. 5.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h1> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  6. 6.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
  7. 7.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h4>Our school trip</h4>
    <h2>The red kite</h2>
    <h2>Hello, world!</h2>
  8. 8.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <!-- <p>Good morning!</p> -->
    <p>I love mangoes.</p>
    <p>The red kite</p>
    (a) I love mangoes. (b) Rain today (c) The red kite (d) Good morning!
  9. 9.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h5>
  10. 10.🔍 Which is the odd one out? (a) turns HTML into a page (b) saves our .html files (c) opens web pages for us (d) shows pages from the web
  11. 11.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  12. 12.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    (a) My pets (b) Cricket is fun. (c) Our school trip
  13. 13.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  14. 14.🔠 Which tag is the least important heading? (a) <h3> (b) <p> (c) <h6> (d) <h1>
  15. 15.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
  16. 16.True or false: in <img>, alt tells which image to load. (a) False (b) True
  17. 17.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
  18. 18.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>Cricket is fun.</p> -->
  19. 19.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
  20. 20.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="200">
    (a) A tiger asleep (b) width (c) An old fort (d) fort.jpg
  22. 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  23. 23.Which of these is true of a web server? (a) saves our .html files (b) colours code to help us (c) answers page requests (d) has an address bar
  24. 24.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    <p>Fun facts</p>
    (a) My best friend (b) My pets (c) Fun facts
  25. 25.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) href (b) quiz.html (c) Take the quiz (d) School news
  26. 26.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
  27. 27.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h1> (d) <h3>
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="400">
    (a) tiger.jpg (b) A red kite (c) width (d) A tiger asleep
  29. 29.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  30. 30.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h4> or <h5>? (a) <h1> (b) <h6> (c) <h5> (d) <h4>
  31. 31.Which of these is an opening tag? (a) </title> (b) <b> (c) </li> (d) </h1>
  32. 32.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="100">
    (a) map.png (b) Birthday cake (c) width (d) Map of India
  33. 33.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="400">
    (a) Birthday cake (b) Map of India (c) map.png (d) width
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="250">
  35. 35.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Guava</li>
    </ol>
  36. 36.True or false: in <img>, width sets how wide it is. (a) False (b) True
  37. 37.🔗 Which attribute holds the address of a link? (a) src (b) alt (c) id (d) href
  38. 38.Which of these is an opening tag? (a) </p> (b) </title> (c) </h1> (d) <li>
  39. 39.🏷️ Which is the closing tag for <em>? (a) <em> (b) <em/> (c) <\em> (d) </em>
  40. 40.🌐 Which one answers page requests? (a) a web browser (b) a web server (c) a code editor

Answer key

  1. False
  2. <h1>
  3. 6
  4. a web server
  5. <h1>
  6. starts a new line
  7. 4
  8. Good morning!
  9. <h1>
  10. saves our .html files
  11. <a>
  12. Cricket is fun.
  13. an opening tag
  14. <h6>
  15. 6
  16. False
  17. on the browser tab
  18. 1
  19. in the head
  20. in the head
  21. An old fort
  22. an opening tag
  23. answers page requests
  24. My best friend
  25. School news
  26. <h6>
  27. <h1>
  28. A tiger asleep
  29. a closing tag
  30. <h6>
  31. <b>
  32. Map of India
  33. Map of India
  34. 250
  35. 3
  36. True
  37. href
  38. <li>
  39. </em>
  40. a web server

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