← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 586 · 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 makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
  2. 2.Which of these is a closing tag? (a) <p> (b) <body> (c) <li> (d) </title>
  3. 3.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h4>? (a) <h1> (b) <h3> (c) <h4> (d) <h2>
  4. 4.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) Hello, world! (c) Our school trip
  5. 5.💬 How does an HTML comment end? (a) >> (b) */ (c) --> (d) //
  6. 6.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) href (b) School news (c) Take the quiz (d) art.html
  7. 7.Which of these is true of a web server? (a) opens web pages for us (b) turns HTML into a page (c) answers page requests (d) shows line numbers
  8. 8.Which of these is true of a web server? (a) hosts websites online (b) is where we type code (c) shows line numbers (d) colours code to help us
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>My best friend</p>
    <p>Our school trip</p>
  10. 10.📋 What number does the browser show next to “Jamun”?
    <ol start="6">
      <li>Mango</li>
      <li>Banana</li>
      <li>Jamun</li>
    </ol>
  11. 11.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
  12. 12.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
  13. 13.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="50">
  14. 14.🌐 Which one turns HTML into a page? (a) a web browser (b) a code editor (c) a web server
  15. 15.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h1> (d) <h2>
  16. 16.True or false: in <img>, height tells which image to load. (a) True (b) False
  17. 17.🔗 Which words do you click on?
    <a href="contact.html">Visit the site</a>
    (a) contact.html (b) Maths fun (c) Visit the site (d) href
  18. 18.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  19. 19.True or false: a web server stores a website’s files. (a) True (b) False
  20. 20.🔠 Are headings shown in bold by default? (a) Yes (b) No
  21. 21.🔍 One closing tag is missing. Which one?
    <i>I love mangoes.</i>
    <small>My best friend</small>
    <b>Cricket is fun.
    (a) </u> (b) </small> (c) </b> (d) </i>
  22. 22.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  23. 23.True or false: <input> is an empty tag. (a) False (b) True
  24. 24.True or false: in <img>, width is read by screen readers. (a) False (b) True
  25. 25.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h2>? (a) <h2> (b) <h4> (c) <h3> (d) <h1>
  26. 26.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>I love mangoes.</p> -->
    <p>My best friend</p>
    (a) The red kite (b) My best friend (c) I love mangoes.
  27. 27.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>I love mangoes.</p>
    <h4>Hello, world!</h4>
    <p>The red kite</p>
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
  29. 29.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h2> or <h6>? (a) <h1> (b) <h2> (c) <h6> (d) <h3>
  30. 30.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="400">
    (a) Map of India (b) width (c) Birthday cake (d) map.png
  31. 31.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>My pets</p>
    <h2>Rain today</h2>
  32. 32.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="50">
    (a) A tiger asleep (b) tiger.jpg (c) A red kite (d) width
  33. 33.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  34. 34.Which of these is an opening tag? (a) </h1> (b) <b> (c) </p> (d) </b>
  35. 35.True or false: <img> has a closing tag. (a) False (b) True
  36. 36.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) games.html (b) About us (c) Play games (d) href
  37. 37.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  38. 38.🏷️ HTML marks up text using ___. (a) pixels (b) tags (c) wires (d) keys
  39. 39.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <html> (c) </head> (d) <!DOCTYPE html>
  40. 40.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="350">

Answer key

  1. <a>
  2. </title>
  3. <h4>
  4. Hello, world!
  5. -->
  6. School news
  7. answers page requests
  8. hosts websites online
  9. 2
  10. 8
  11. 6
  12. <img>
  13. 50
  14. a web browser
  15. <h1>
  16. False
  17. Visit the site
  18. <ol>
  19. True
  20. Yes
  21. </b>
  22. an empty tag
  23. True
  24. False
  25. <h4>
  26. I love mangoes.
  27. 2
  28. 3
  29. <h6>
  30. Map of India
  31. 2
  32. A tiger asleep
  33. a closing tag
  34. <b>
  35. False
  36. Play games
  37. 3
  38. tags
  39. </html>
  40. 350

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