← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 137 · 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.📋 What number does the browser show next to “Banana”?
    <ol start="9">
      <li>Jamun</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  2. 2.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  3. 3.Which of these is true of a web browser? (a) stores a website’s files (b) opens web pages for us (c) is where we type code (d) answers page requests
  4. 4.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Banana</li>
      <li>Guava</li>
    </ol>
  5. 5.Which of these is true of a web browser? (a) turns HTML into a page (b) is where we type code (c) answers page requests (d) stores a website’s files
  6. 6.True or false: a code editor colours code to help us. (a) True (b) False
  7. 7.Which of these is true of a code editor? (a) hosts websites online (b) has an address bar (c) sends pages over the net (d) shows line numbers
  8. 8.🔍 One closing tag is missing. Which one?
    <b>Our school trip</b>
    <i>Hello, world!
    <u>Good morning!</u>
    (a) </b> (b) </u> (c) </h1> (d) </i>
  9. 9.Which of these is an opening tag? (a) <li> (b) </body> (c) </title> (d) </h1>
  10. 10.🔗 Which words do you click on?
    <a href="news.html">Contact us</a>
    (a) news.html (b) Contact us (c) href (d) Visit the site
  11. 11.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="50">
    (a) The full moon (b) dog.jpg (c) width (d) A happy dog
  12. 12.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) href (b) Maths fun (c) Art corner (d) games.html
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
  14. 14.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  15. 15.Which of these is an empty tag? (a) <b> (b) <li> (c) <img> (d) <p>
  16. 16.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) Contact us (b) href (c) About us (d) quiz.html
  17. 17.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  18. 18.Which of these is true of a web server? (a) has an address bar (b) answers page requests (c) colours code to help us (d) shows pages from the web
  19. 19.True or false: HTML on its own can make bullet lists. (a) True (b) False
  20. 20.Which of these is a closing tag? (a) <body> (b) <b> (c) <p> (d) </p>
  21. 21.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <head> (c) <html> (d) <body>
  22. 22.True or false: <title> goes in the body. (a) True (b) False
  23. 23.📄 Can HTML on its own keep a high score? (a) Yes (b) No
  24. 24.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Good morning!</p>
    <h3>Good morning!</h3>
    <p>Hello, world!</p>
  25. 25.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h6> (d) <h1>
  26. 26.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  27. 27.Which of these goes in the head? (a) <h1> (b) <ul> (c) <title> (d) <p>
  28. 28.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  29. 29.True or false: in <img>, src names the picture file. (a) False (b) True
  30. 30.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  31. 31.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
  32. 32.Which of these is true of a code editor? (a) opens web pages for us (b) has an address bar (c) shows pages from the web (d) colours code to help us
  33. 33.True or false: in <img>, height sets how wide it is. (a) True (b) False
  34. 34.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
  35. 35.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <html> (c) </html> (d) <head>
  36. 36.🔗 Which words do you click on?
    <a href="art.html">Maths fun</a>
    (a) href (b) Maths fun (c) Art corner (d) art.html
  37. 37.🔗 Which address opens when you click this link?
    <a href="news.html">Play games</a>
    (a) quiz.html (b) games.html (c) Play games (d) news.html
  38. 38.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  39. 39.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
    (a) bullets (b) numbers
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>The red kite</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>

Answer key

  1. 11
  2. has a closing tag
  3. opens web pages for us
  4. 3
  5. turns HTML into a page
  6. True
  7. shows line numbers
  8. </i>
  9. <li>
  10. Contact us
  11. A happy dog
  12. Maths fun
  13. 3
  14. has a closing tag
  15. <img>
  16. About us
  17. has a closing tag
  18. answers page requests
  19. True
  20. </p>
  21. <!DOCTYPE html>
  22. False
  23. No
  24. 2
  25. <h1>
  26. an empty tag
  27. <title>
  28. an opening tag
  29. True
  30. <ul>
  31. <h1>
  32. colours code to help us
  33. False
  34. <h1>
  35. </html>
  36. Maths fun
  37. news.html
  38. an empty tag
  39. numbers
  40. 1

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