← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 285 · 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 goes around each item of a list? (a) <ol> (b) <p> (c) <li> (d) <ul>
  2. 2.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="200">
    (a) moon.png (b) bus.jpg (c) fort.jpg (d) The full moon
  3. 3.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Papaya</li>
    </ol>
  4. 4.True or false: a web server shows line numbers. (a) False (b) True
  5. 5.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
    </ol>
  6. 6.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Sky is blue<br>Roses are red</p>
  7. 7.🔗 Which address opens when you click this link?
    <a href="news.html">School news</a>
    (a) games.html (b) quiz.html (c) School news (d) news.html
  8. 8.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="300">
    (a) An old fort (b) fort.jpg (c) kite.png (d) tiger.jpg
  9. 9.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
  10. 10.📋 What number does the browser show next to “Orange”?
    <ol start="4">
      <li>Litchi</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
  11. 11.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
  12. 12.True or false: <ol> goes inside ul or ol. (a) False (b) True
  13. 13.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
  14. 14.True or false: HTML on its own cannot count button clicks. (a) False (b) True
  15. 15.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  16. 16.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
  17. 17.Which of these goes in the head? (a) <ul> (b) <table> (c) <style> (d) <img>
  18. 18.🔍 One closing tag is missing. Which one?
    <b>My pets
    <strong>Rain today</strong>
    <h2>Good morning!</h2>
    (a) </h2> (b) </strong> (c) </b> (d) </h1>
  19. 19.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="150">
  20. 20.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="50">
    (a) A red kite (b) Map of India (c) kite.png (d) width
  22. 22.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h4> or <h6>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
  23. 23.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Roses are red<br>Stars shine<br>Sky is blue</p>
  24. 24.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="350">
  25. 25.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <p>Rain today</p>
    <!-- <p>Our school trip</p> -->
  26. 26.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h3>? (a) <h2> (b) <h1> (c) <h4> (d) <h3>
  27. 27.Which of these is true of a code editor? (a) shows line numbers (b) opens web pages for us (c) has an address bar (d) sends pages over the net
  28. 28.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
  29. 29.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
    </ol>
    (a) numbers (b) bullets
  30. 30.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
  31. 31.Which of these is an empty tag? (a) <h1> (b) <img> (c) <b> (d) <p>
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red</p>
  33. 33.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  34. 34.🔗 Which address opens when you click this link?
    <a href="art.html">Take the quiz</a>
    (a) art.html (b) news.html (c) quiz.html (d) Take the quiz
  35. 35.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <p>My best friend</p>
  36. 36.📝 What does <hr> draw? (a) a link (b) a table (c) a line across the page (d) a picture
  37. 37.True or false: <style> goes in the body. (a) False (b) True
  38. 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
  39. 39.🔗 Which words do you click on?
    <a href="games.html">Art corner</a>
    (a) Art corner (b) School news (c) games.html (d) href
  40. 40.🔠 Are headings shown in bold by default? (a) Yes (b) No

Answer key

  1. <li>
  2. moon.png
  3. 6
  4. False
  5. 2
  6. 3
  7. news.html
  8. fort.jpg
  9. a web browser
  10. 5
  11. True
  12. False
  13. href
  14. True
  15. an empty tag
  16. <ol>
  17. <style>
  18. </b>
  19. 150
  20. an opening tag
  21. A red kite
  22. <h3>
  23. 4
  24. 350
  25. 2
  26. <h4>
  27. shows line numbers
  28. <ol>
  29. numbers
  30. <h6>
  31. <img>
  32. 2
  33. an opening tag
  34. art.html
  35. 4
  36. a line across the page
  37. False
  38. a slash /
  39. Art corner
  40. Yes

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