← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 746 · 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 words do you click on?
    <a href="maths.html">Art corner</a>
    (a) School news (b) maths.html (c) href (d) Art corner
  2. 2.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) < (d) {
  3. 3.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
  4. 4.🖼️ Which attribute of <img> tells which image to load? (a) src (b) alt (c) width (d) height
  5. 5.True or false: in <img>, height sets how tall it is. (a) False (b) True
  6. 6.True or false: in <img>, src is read by screen readers. (a) True (b) False
  7. 7.🔗 Which address opens when you click this link?
    <a href="maths.html">Visit the site</a>
    (a) Visit the site (b) art.html (c) maths.html (d) news.html
  8. 8.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
  9. 9.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Kites fly high<br>Roses are red</p>
  10. 10.True or false: <img> has a closing tag. (a) True (b) False
  11. 11.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Jamun</li>
    </ol>
  12. 12.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) width (b) A red kite (c) tiger.jpg (d) A tiger asleep
  14. 14.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  15. 15.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h1> (d) <h6>
  16. 16.📋 What number does the browser show next to “Jamun”?
    <ol start="8">
      <li>Guava</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Litchi</li>
    </ol>
  17. 17.💬 Does the browser show comments on the page? (a) No (b) Yes
  18. 18.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>The red kite</p>
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  19. 19.True or false: in <img>, height describes the picture. (a) True (b) False
  20. 20.True or false: HTML on its own can make bullet lists. (a) False (b) True
  21. 21.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  22. 22.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  23. 23.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  24. 24.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h5> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  25. 25.Which of these is true of a web browser? (a) turns HTML into a page (b) shows line numbers (c) hosts websites online (d) colours code to help us
  26. 26.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="50">
    (a) kite.png (b) tiger.jpg (c) map.png (d) A tiger asleep
  27. 27.📄 What is the first line of an HTML5 page? (a) <html> (b) <!DOCTYPE html> (c) <body> (d) <head>
  28. 28.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) games.html (b) href (c) Contact us (d) About us
  29. 29.True or false: <ol> lists steps in order. (a) False (b) True
  30. 30.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <head> (c) <html> (d) </body>
  31. 31.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  32. 32.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h4> or <h6>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
  33. 33.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
  34. 34.🔗 Which address opens when you click this link?
    <a href="maths.html">About us</a>
    (a) news.html (b) maths.html (c) About us (d) art.html
  35. 35.Which of these has a closing tag? (a) <meta> (b) <p> (c) <input> (d) <hr>
  36. 36.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the title (d) the doctype
  37. 37.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
  38. 38.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  39. 39.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h1>? (a) <h5> (b) <h3> (c) <h1> (d) <h6>
  40. 40.True or false: in <img>, src tells which image to load. (a) False (b) True

Answer key

  1. Art corner
  2. <
  3. <li>
  4. src
  5. True
  6. False
  7. maths.html
  8. a plain text editor
  9. 3
  10. False
  11. 3
  12. <h5>
  13. A tiger asleep
  14. No
  15. <h1>
  16. 12
  17. No
  18. 4
  19. False
  20. True
  21. <ol>
  22. in the head
  23. Yes
  24. <h5>
  25. turns HTML into a page
  26. tiger.jpg
  27. <!DOCTYPE html>
  28. About us
  29. True
  30. </html>
  31. No
  32. <h1>
  33. <ul>
  34. maths.html
  35. <p>
  36. the body
  37. -->
  38. <a>
  39. <h1>
  40. True

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