← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 816 · 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>, <h3>, <h1> or <h5>? (a) <h1> (b) <h5> (c) <h3> (d) <h6>
  2. 2.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
  3. 3.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  4. 4.📋 What number does the browser show next to “Banana”?
    <ol start="9">
      <li>Grapes</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
  5. 5.📄 What is the first line of an HTML5 page? (a) <html> (b) <body> (c) <head> (d) <!DOCTYPE html>
  6. 6.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  7. 7.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Markup (c) Machine (d) Modern
  8. 8.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
  9. 9.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h4>My best friend</h4>
    <h3>The red kite</h3>
  10. 10.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) The red kite (c) Good morning! (d) My pets
  11. 11.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
  12. 12.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h4>
  13. 13.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
  14. 14.True or false: <ol> lists steps in order. (a) False (b) True
  15. 15.📛 In <a href="x.html">, what is href? (a) an attribute (b) a comment (c) a closing tag (d) an element name
  16. 16.🔍 Which line is missing its closing tag?
    line 1: <i>Good morning!</i>
    line 2: <h2>Our school trip</h2>
    line 3: <h3>I love mangoes.
    (a) line 1 (b) line 2 (c) line 3
  17. 17.🖼️ Which attribute of <img> describes the picture? (a) src (b) alt (c) height (d) width
  18. 18.📄 Can HTML on its own count button clicks? (a) No (b) Yes
  19. 19.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Rain today</p>
    <p>Rain today</p>
    <h2>Cricket is fun.</h2>
    <p>Good morning!</p>
    <p>My pets</p>
  20. 20.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <p>Our school trip</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>The red kite</p>
  21. 21.🔍 One closing tag is missing. Which one?
    <small>Good morning!
    <h2>My pets</h2>
    <u>Rain today</u>
    (a) </small> (b) </i> (c) </h2> (d) </u>
  22. 22.🔗 What does HyperText mean? (a) very big text (b) text with links (c) secret text (d) text in colour
  23. 23.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) Art corner (b) games.html (c) contact.html (d) about.html
  24. 24.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  25. 25.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) <small/> (d) </small>
  26. 26.True or false: <li> goes inside ul or ol. (a) False (b) True
  27. 27.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h3>? (a) <h4> (b) <h6> (c) <h2> (d) <h3>
  28. 28.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2/> (c) <\h2> (d) <h2>
  29. 29.🔍 One closing tag is missing. Which one?
    <small>My best friend
    <strong>Rain today</strong>
    <h3>I love mangoes.</h3>
    (a) </small> (b) </strong> (c) </h3> (d) </u>
  30. 30.True or false: <b> has a closing tag. (a) False (b) True
  31. 31.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Rain today</p>
    <p>Cricket is fun.</p>
  32. 32.Which of these is an opening tag? (a) </b> (b) <b> (c) </h1> (d) </body>
  33. 33.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  34. 34.🔠 Are headings shown in bold by default? (a) Yes (b) No
  35. 35.📄 Which part holds everything you see on the page? (a) the head (b) the doctype (c) the title (d) the body
  36. 36.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
  37. 37.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  38. 38.🔍 Which is the odd one out? (a) shows pages from the web (b) hosts websites online (c) turns HTML into a page (d) has an address bar
  39. 39.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a slash / (d) a dot .
  40. 40.📝 What does <p> make? (a) a table (b) a paragraph (c) a link (d) a picture

Answer key

  1. <h6>
  2. <ol>
  3. a closing tag
  4. 11
  5. <!DOCTYPE html>
  6. 5
  7. Markup
  8. <a>
  9. 3
  10. My pets
  11. a web browser
  12. <h1>
  13. </b>
  14. True
  15. an attribute
  16. line 3
  17. alt
  18. No
  19. 5
  20. 3
  21. </small>
  22. text with links
  23. games.html
  24. False
  25. </small>
  26. True
  27. <h2>
  28. </h2>
  29. </small>
  30. True
  31. 3
  32. <b>
  33. a closing tag
  34. Yes
  35. the body
  36. Yes
  37. a closing tag
  38. hosts websites online
  39. a slash /
  40. a paragraph

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