← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 595 · 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.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
  2. 2.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  3. 3.Which of these is true of a web server? (a) shows line numbers (b) colours code to help us (c) shows pages from the web (d) stores a website’s files
  4. 4.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ul>
  5. 5.True or false: <a> goes in the body. (a) True (b) False
  6. 6.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
  7. 7.Which of these is an empty tag? (a) <ul> (b) <hr> (c) <p> (d) <title>
  8. 8.📝 Does <title> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  9. 9.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) contact.html (b) about.html (c) Art corner (d) games.html
  10. 10.Which of these is true of a code editor? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) turns HTML into a page
  11. 11.🔗 Where does this link open?
    <a href="https://example.com">About us</a>
    (a) in the same tab (b) in a new tab
  12. 12.Which of these is true of a web server? (a) colours code to help us (b) saves our .html files (c) opens web pages for us (d) answers page requests
  13. 13.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue<br>Roses are red<br>Rivers flow</p>
  14. 14.True or false: <title> is an empty tag. (a) True (b) False
  15. 15.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
  16. 16.Which of these is a closing tag? (a) <li> (b) <p> (c) <body> (d) </title>
  17. 17.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="150">
  18. 18.True or false: in <img>, alt tells which image to load. (a) False (b) True
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Guava</li>
      <li>Orange</li>
    </ol>
  20. 20.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) editor (c) address (d) element
  21. 21.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h5> (d) <h6>
  22. 22.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
  23. 23.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>Rain today</h3>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
  24. 24.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
  25. 25.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Papaya</li>
    </ul>
  26. 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h5> or <h3>? (a) <h5> (b) <h2> (c) <h1> (d) <h3>
  27. 27.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  28. 28.True or false: in <img>, width sets how wide it is. (a) True (b) False
  29. 29.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  30. 30.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <a href="about.html"> (d) <link about.html>
  31. 31.True or false: <ol> lists steps in order. (a) True (b) False
  32. 32.🔗 What does HyperText mean? (a) secret text (b) text with links (c) text in colour (d) very big text
  33. 33.📄 Can HTML on its own make tables? (a) No (b) Yes
  34. 34.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <p>Cricket is fun.</p>
    <!-- <p>My pets</p> -->
    <p>Our school trip</p>
  35. 35.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    (a) Hello, world! (b) Our school trip (c) Cricket is fun.
  36. 36.Which of these has a closing tag? (a) <meta> (b) <ul> (c) <input> (d) <img>
  37. 37.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <h2>My pets</h2>
    <p>Rain today</p>
    <h2>I love mangoes.</h2>
  38. 38.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h6> or <h4>? (a) <h3> (b) <h5> (c) <h4> (d) <h6>
  39. 39.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  40. 40.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>

Answer key

  1. <
  2. <ul>
  3. stores a website’s files
  4. 3
  5. True
  6. a web browser
  7. <hr>
  8. has a closing tag
  9. games.html
  10. is where we type code
  11. in the same tab
  12. answers page requests
  13. 4
  14. False
  15. <h1>
  16. </title>
  17. 150
  18. False
  19. 4
  20. element
  21. <h6>
  22. <h6>
  23. 2
  24. <img>
  25. 2
  26. <h1>
  27. in the head
  28. True
  29. No
  30. <a href="about.html">
  31. True
  32. text with links
  33. Yes
  34. 4
  35. Our school trip
  36. <ul>
  37. 4
  38. <h6>
  39. <a>
  40. <h1>

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