← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 825 · 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.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  2. 2.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>Our school trip</p> -->
    <p>My best friend</p>
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
  3. 3.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) <small/> (d) </small>
  4. 4.📋 What number does the browser show next to “Mango”?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Orange</li>
    </ol>
  5. 5.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 10 (d) 4
  6. 6.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing</p>
  7. 7.True or false: in <img>, height sets how tall it is. (a) False (b) True
  8. 8.True or false: <li> is one item of a list. (a) True (b) False
  9. 9.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
  10. 10.🔍 One closing tag is missing. Which one?
    <strong>Rain today</strong>
    <b>My best friend</b>
    <u>The red kite
    (a) </b> (b) </strong> (c) </h1> (d) </u>
  11. 11.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <h2>Rain today</h2>
  12. 12.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  13. 13.True or false: <ol> goes inside ul or ol. (a) False (b) True
  14. 14.True or false: in <img>, src names the picture file. (a) True (b) False
  15. 15.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  16. 16.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
  17. 17.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <ul> (d) <li>
  18. 18.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) I love mangoes. (c) Fun facts
  19. 19.True or false: in <img>, alt describes the picture. (a) True (b) False
  20. 20.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>My pets</p>
  21. 21.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) shows pages from the web (d) is where we type code
  22. 22.💬 How does an HTML comment end? (a) // (b) >> (c) --> (d) */
  23. 23.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dollar $ (c) a hash # (d) a dot .
  24. 24.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  25. 25.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  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.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  28. 28.🔍 Which is the odd one out? (a) colours code to help us (b) shows line numbers (c) saves our .html files (d) stores a website’s files
  29. 29.🔍 One closing tag is missing. Which one?
    <small>Hello, world!
    <u>Fun facts</u>
    <h3>My pets</h3>
    (a) </u> (b) </h1> (c) </small> (d) </h3>
  30. 30.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Papaya</li>
    </ul>
    (a) numbers (b) bullets
  31. 31.🔢 In a basic web page file, which comes first: “</html>” or “</head>”? (a) </head> (b) </html>
  32. 32.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  33. 33.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
  34. 34.📝 What does <p> make? (a) a link (b) a paragraph (c) a table (d) a picture
  35. 35.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
  36. 36.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) HyperText (d) High Tech
  37. 37.Which of these is a closing tag? (a) <h1> (b) <li> (c) </title> (d) <p>
  38. 38.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  39. 39.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Rivers flow</p>

Answer key

  1. an opening tag
  2. 3
  3. </small>
  4. 2
  5. 6
  6. 4
  7. True
  8. True
  9. opens it in a new tab
  10. </u>
  11. 5
  12. a closing tag
  13. False
  14. True
  15. True
  16. <ul>
  17. <li>
  18. Fun facts
  19. True
  20. 1
  21. shows pages from the web
  22. -->
  23. a slash /
  24. has a closing tag
  25. False
  26. an empty tag
  27. bullets
  28. stores a website’s files
  29. </small>
  30. bullets
  31. </head>
  32. an opening tag
  33. 3
  34. a paragraph
  35. <ol>
  36. HyperText
  37. </title>
  38. an opening tag
  39. tags
  40. 3

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