← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 374 · 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 heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h1>? (a) <h5> (b) <h4> (c) <h1> (d) <h6>
  2. 2.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
  3. 3.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
  4. 4.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h3>? (a) <h3> (b) <h4> (c) <h2> (d) <h6>
  5. 5.🔗 Which address opens when you click this link?
    <a href="about.html">Take the quiz</a>
    (a) about.html (b) https://example.com (c) Take the quiz (d) contact.html
  6. 6.Which of these is true of a code editor? (a) saves our .html files (b) stores a website’s files (c) shows pages from the web (d) answers page requests
  7. 7.True or false: a web browser colours code to help us. (a) True (b) False
  8. 8.🔗 Which words do you click on?
    <a href="https://example.com">Take the quiz</a>
    (a) Play games (b) https://example.com (c) Take the quiz (d) href
  9. 9.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>Good morning!</p> -->
  10. 10.💬 How does an HTML comment start? (a) /* (b) <!-- (c) // (d) #
  11. 11.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
  12. 12.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  13. 13.📋 Which tag goes around each item of a list? (a) <p> (b) <li> (c) <ol> (d) <ul>
  14. 14.🔗 Which attribute holds the address of a link? (a) href (b) src (c) alt (d) id
  15. 15.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h6> (d) <h2>
  16. 16.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  17. 17.🖼️ Which attribute of <img> tells which image to load? (a) width (b) src (c) height (d) alt
  18. 18.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    (a) The red kite (b) Rain today (c) Cricket is fun.
  19. 19.🏷️ Which is the closing tag for <u>? (a) <u/> (b) <\u> (c) </u> (d) <u>
  20. 20.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="400">
    (a) kite.png (b) A red kite (c) Map of India (d) width
  22. 22.🔍 One closing tag is missing. Which one?
    <p>Our school trip
    <b>My pets</b>
    <u>Good morning!</u>
    (a) </b> (b) </u> (c) </small> (d) </p>
  23. 23.Which of these is true of a web server? (a) answers page requests (b) has an address bar (c) is where we type code (d) turns HTML into a page
  24. 24.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h4> (d) <h3>
  25. 25.🔗 Where does this link open?
    <a href="news.html">About us</a>
    (a) in the same tab (b) in a new tab
  26. 26.True or false: <ol> shows bullet points. (a) False (b) True
  27. 27.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="300">
    (a) Map of India (b) width (c) Birthday cake (d) map.png
  29. 29.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line
  30. 30.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Papaya</li>
    </ul>
  31. 31.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="200">
    (a) A happy dog (b) cake.jpg (c) Birthday cake (d) width
  32. 32.💬 Does the browser show comments on the page? (a) No (b) Yes
  33. 33.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Our school trip</p>
    <p>Fun facts</p>
  34. 34.True or false: a code editor hosts websites online. (a) True (b) False
  35. 35.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  36. 36.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
  37. 37.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  38. 38.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h1>
  39. 39.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) a closing tag (d) an attribute
  40. 40.True or false: in <img>, alt describes the picture. (a) False (b) True

Answer key

  1. <h6>
  2. the body
  3. <h1>
  4. <h6>
  5. about.html
  6. saves our .html files
  7. False
  8. Take the quiz
  9. 1
  10. <!--
  11. <h6>
  12. Yes
  13. <li>
  14. href
  15. <h2>
  16. False
  17. src
  18. Rain today
  19. </u>
  20. an opening tag
  21. A red kite
  22. </p>
  23. answers page requests
  24. <h3>
  25. in the same tab
  26. False
  27. 3
  28. Map of India
  29. Language
  30. 2
  31. Birthday cake
  32. No
  33. 3
  34. False
  35. an empty tag
  36. <a href="about.html">
  37. has a closing tag
  38. <h1>
  39. an attribute
  40. True

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