← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 926 · 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 BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
  2. 2.💬 Does the browser show comments on the page? (a) No (b) Yes
  3. 3.🏷️ Which is the closing tag for <h3>? (a) <h3> (b) <h3/> (c) <\h3> (d) </h3>
  4. 4.🔗 Which address opens when you click this link?
    <a href="https://example.com">Art corner</a>
    (a) art.html (b) maths.html (c) Art corner (d) https://example.com
  5. 5.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Jamun</li>
    </ol>
  6. 6.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
    <p>Our school trip</p>
  7. 7.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <!-- <p>The red kite</p> -->
    (a) I love mangoes. (b) The red kite (c) Hello, world!
  8. 8.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <head> (d) <body>
  9. 9.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  10. 10.Which of these has a closing tag? (a) <br> (b) <input> (c) <h1> (d) <meta>
  11. 11.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
  12. 12.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
  13. 13.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
  14. 14.🔍 One closing tag is missing. Which one?
    <h2>I love mangoes.</h2>
    <b>Hello, world!</b>
    <p>Good morning!
    (a) </h2> (b) </p> (c) </h1> (d) </b>
  15. 15.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
  16. 16.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  17. 17.True or false: <p> goes in the head. (a) True (b) False
  18. 18.True or false: a web server answers page requests. (a) True (b) False
  19. 19.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  20. 20.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <p>The red kite</p>
    (a) Good morning! (b) I love mangoes. (c) Fun facts (d) The red kite
  21. 21.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    (a) My best friend (b) I love mangoes. (c) Fun facts
  22. 22.Which of these is true of a web server? (a) sends pages over the net (b) shows line numbers (c) turns HTML into a page (d) colours code to help us
  23. 23.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
  24. 24.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>Our school trip</p> -->
    <p>Fun facts</p>
    <!-- <p>My pets</p> -->
  25. 25.Which of these has a closing tag? (a) <li> (b) <hr> (c) <img> (d) <meta>
  26. 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  27. 27.🔍 Which line is missing its closing tag?
    line 1: <em>My pets</em>
    line 2: <u>Cricket is fun.</u>
    line 3: <h3>The red kite
    (a) line 1 (b) line 3 (c) line 2
  28. 28.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
  29. 29.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  30. 30.True or false: <img> has a closing tag. (a) True (b) False
  31. 31.Which of these is an opening tag? (a) </li> (b) </title> (c) <b> (d) </h1>
  32. 32.🔢 In a basic web page file, which comes first: “<html>” or “<body>”? (a) <html> (b) <body>
  33. 33.True or false: <h1> is an empty tag. (a) True (b) False
  34. 34.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ol>
  35. 35.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
  36. 36.🔗 Where does this link open?
    <a href="news.html" target="_blank">About us</a>
    (a) in the same tab (b) in a new tab
  37. 37.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  38. 38.Which of these is a closing tag? (a) <li> (b) <h1> (c) </p> (d) <title>
  39. 39.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h4> (d) <h2>
  40. 40.🌐 Which one sends pages over the net? (a) a code editor (b) a web server (c) a web browser

Answer key

  1. <h1>
  2. No
  3. </h3>
  4. https://example.com
  5. 2
  6. 2
  7. The red kite
  8. <!DOCTYPE html>
  9. a closing tag
  10. <h1>
  11. Markup
  12. a code editor
  13. <h1>
  14. </p>
  15. <a href="about.html">
  16. No
  17. False
  18. True
  19. in the body
  20. Good morning!
  21. I love mangoes.
  22. sends pages over the net
  23. a slash /
  24. 2
  25. <li>
  26. in the body
  27. line 3
  28. a web server
  29. True
  30. False
  31. <b>
  32. <html>
  33. False
  34. 3
  35. <h5>
  36. in a new tab
  37. has a closing tag
  38. </p>
  39. <h6>
  40. a web server

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