← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 922 · 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 headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Good morning!</p>
    <h3>Fun facts</h3>
  2. 2.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  3. 3.True or false: <ul> shows bullet points. (a) True (b) False
  4. 4.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>My pets</p>
    <p>My pets</p>
  5. 5.🏷️ HTML marks up text using ___. (a) keys (b) tags (c) wires (d) pixels
  6. 6.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>The red kite</p> -->
    <p>Fun facts</p>
    <!-- <p>Our school trip</p> -->
  7. 7.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  8. 8.True or false: HTML on its own cannot count button clicks. (a) False (b) True
  9. 9.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <br> (c) <h6> (d) <p>
  10. 10.📄 Can HTML on its own make a form? (a) Yes (b) No
  11. 11.Which of these is true of a code editor? (a) turns HTML into a page (b) shows line numbers (c) opens web pages for us (d) hosts websites online
  12. 12.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>The red kite</p>
    <h2>Fun facts</h2>
    <p>Good morning!</p>
    <p>The red kite</p>
    <h2>Rain today</h2>
  13. 13.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
  14. 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
  15. 15.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Rain today</p>
    <p>My pets</p>
    (a) Hello, world! (b) Rain today (c) My pets
  16. 16.📝 What does <p> make? (a) a paragraph (b) a table (c) a link (d) a picture
  17. 17.True or false: HTML on its own can make tables. (a) True (b) False
  18. 18.Which of these is an opening tag? (a) <body> (b) </p> (c) </b> (d) </h1>
  19. 19.🔍 Which is the odd one out? (a) hosts websites online (b) is where we type code (c) stores a website’s files (d) answers page requests
  20. 20.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) School news (b) href (c) Take the quiz (d) art.html
  21. 21.📋 What number does the browser show next to “Mango”?
    <ol>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Mango</li>
    </ol>
  22. 22.True or false: <h1> is an empty tag. (a) False (b) True
  23. 23.📋 What number does the browser show next to “Grapes”?
    <ol start="4">
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ol>
  24. 24.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
  25. 25.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
  26. 26.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
    <p>My pets</p>
    <p>I love mangoes.</p>
    (a) Rain today (b) My pets (c) The red kite (d) I love mangoes.
  27. 27.🔍 One closing tag is missing. Which one?
    <strong>Hello, world!</strong>
    <h1>Our school trip
    <small>I love mangoes.</small>
    (a) </h1> (b) </strong> (c) </small> (d) </h2>
  28. 28.🖼️ Why do we add alt text to an image? (a) to colour it (b) to describe the image (c) to make it bigger (d) to load it faster
  29. 29.🔍 One closing tag is missing. Which one?
    <h2>I love mangoes.
    <p>Good morning!</p>
    <strong>Hello, world!</strong>
    (a) </strong> (b) </p> (c) </h3> (d) </h2>
  30. 30.Which of these is a closing tag? (a) <h1> (b) </b> (c) <body> (d) <p>
  31. 31.🔍 One closing tag is missing. Which one?
    <strong>Fun facts</strong>
    <b>The red kite
    <u>Hello, world!</u>
    (a) </b> (b) </p> (c) </strong> (d) </u>
  32. 32.🏷️ Which is the closing tag for <p>? (a) <p/> (b) </p> (c) <p> (d) <\p>
  33. 33.Which of these is an opening tag? (a) </p> (b) <b> (c) </h1> (d) </title>
  34. 34.🔗 Which words do you click on?
    <a href="quiz.html">Visit the site</a>
    (a) quiz.html (b) Maths fun (c) href (d) Visit the site
  35. 35.🔗 Which words do you click on?
    <a href="news.html">Play games</a>
    (a) About us (b) Play games (c) href (d) news.html
  36. 36.🌐 Which one hosts websites online? (a) a code editor (b) a web browser (c) a web server
  37. 37.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
  38. 38.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  39. 39.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  40. 40.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Rain today</p>
    <h2>Cricket is fun.</h2>
    <p>I love mangoes.</p>
    <p>Fun facts</p>

Answer key

  1. 2
  2. an empty tag
  3. True
  4. 1
  5. tags
  6. 2
  7. Yes
  8. True
  9. <h1>
  10. Yes
  11. shows line numbers
  12. 4
  13. <
  14. HyperText
  15. Hello, world!
  16. a paragraph
  17. True
  18. <body>
  19. is where we type code
  20. School news
  21. 3
  22. False
  23. 8
  24. structure
  25. 6
  26. Rain today
  27. </h1>
  28. to describe the image
  29. </h2>
  30. </b>
  31. </b>
  32. </p>
  33. <b>
  34. Visit the site
  35. Play games
  36. a web server
  37. to leave notes
  38. in the head
  39. an opening tag
  40. 4

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