← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 275 · 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.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ul>
  2. 2.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  3. 3.True or false: <ul> is an unordered list. (a) True (b) False
  4. 4.🔗 Which words do you click on?
    <a href="news.html">Contact us</a>
    (a) Visit the site (b) href (c) news.html (d) Contact us
  5. 5.True or false: HTML on its own can add pictures to a page. (a) True (b) False
  6. 6.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  7. 7.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h1>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
  8. 8.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  9. 9.🔗 Which words do you click on?
    <a href="art.html">Play games</a>
    (a) href (b) About us (c) Play games (d) art.html
  10. 10.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Match report (b) index.html (c) Here is my best one. (d) My Hobbies
  11. 11.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My Hobbies (b) body (c) Welcome! (d) I like to read.
  12. 12.True or false: <a> goes in the head. (a) False (b) True
  13. 13.Which of these is true of a web browser? (a) hosts websites online (b) shows line numbers (c) turns HTML into a page (d) stores a website’s files
  14. 14.Which of these is a closing tag? (a) <h1> (b) </b> (c) <li> (d) <b>
  15. 15.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) [ (d) {
  16. 16.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <h2>I love mangoes.</h2>
    <p>My pets</p>
    <p>My best friend</p>
    <p>Our school trip</p>
  17. 17.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Fun facts</p>
    <h4>Good morning!</h4>
  18. 18.Which of these is true of a web server? (a) turns HTML into a page (b) is where we type code (c) has an address bar (d) sends pages over the net
  19. 19.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
  20. 20.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  21. 21.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
    (a) Good morning! (b) I love mangoes. (c) My pets
  22. 22.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  23. 23.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  24. 24.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</body>”? (a) <!DOCTYPE html> (b) </body>
  25. 25.🔗 Which address opens when you click this link?
    <a href="art.html">Maths fun</a>
    (a) news.html (b) quiz.html (c) Maths fun (d) art.html
  26. 26.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .html (d) .txt
  27. 27.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  28. 28.True or false: <h1> goes in the head. (a) False (b) True
  29. 29.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Banana</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ul>
  30. 30.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <h2>Cricket is fun.</h2>
    <h2>I love mangoes.</h2>
  31. 31.True or false: a web server has an address bar. (a) True (b) False
  32. 32.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
  33. 33.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  34. 34.🔍 One closing tag is missing. Which one?
    <small>I love mangoes.</small>
    <h3>My best friend
    <strong>The red kite</strong>
    (a) </small> (b) </h3> (c) </h1> (d) </strong>
  35. 35.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h6> or <h2>? (a) <h5> (b) <h2> (c) <h6> (d) <h1>
  36. 36.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <img> (d) <a>
  37. 37.🔍 Which line is missing its closing tag?
    line 1: <h1>The red kite
    line 2: <strong>Our school trip</strong>
    line 3: <small>Hello, world!</small>
    (a) line 2 (b) line 1 (c) line 3
  38. 38.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
  39. 39.True or false: <input> has a closing tag. (a) True (b) False
  40. 40.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>

Answer key

  1. 3
  2. a closing tag
  3. True
  4. Contact us
  5. True
  6. in the head
  7. <h1>
  8. False
  9. Play games
  10. My Hobbies
  11. Welcome!
  12. False
  13. turns HTML into a page
  14. </b>
  15. <
  16. 4
  17. 2
  18. sends pages over the net
  19. a code editor
  20. in the head
  21. Good morning!
  22. an empty tag
  23. <a>
  24. <!DOCTYPE html>
  25. art.html
  26. .html
  27. 3
  28. False
  29. 4
  30. 1
  31. False
  32. a web server
  33. Yes
  34. </h3>
  35. <h6>
  36. <img>
  37. line 1
  38. <h5>
  39. False
  40. <h1>

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