← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 276 · 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 words do you click on?
    <a href="maths.html">Art corner</a>
    (a) maths.html (b) Art corner (c) School news (d) href
  2. 2.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>Hello, world!</h2>
    <p>Good morning!</p>
    <h2>Hello, world!</h2>
  3. 3.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  4. 4.Which of these goes in the body? (a) <table> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
  5. 5.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
  6. 6.🔍 One closing tag is missing. Which one?
    <h3>Fun facts</h3>
    <em>The red kite
    <h2>Rain today</h2>
    (a) </h3> (b) </h2> (c) </p> (d) </em>
  7. 7.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <h2>Rain today</h2>
  8. 8.True or false: a web browser turns HTML into a page. (a) True (b) False
  9. 9.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>
    (a) bullets (b) numbers
  10. 10.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  11. 11.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  12. 12.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h2>? (a) <h6> (b) <h1> (c) <h2> (d) <h5>
  13. 13.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h4>? (a) <h6> (b) <h2> (c) <h1> (d) <h4>
  14. 14.Which of these is an opening tag? (a) </h1> (b) </p> (c) </body> (d) <b>
  15. 15.💬 How does an HTML comment start? (a) <!-- (b) // (c) /* (d) #
  16. 16.True or false: <h1> has a closing tag. (a) True (b) False
  17. 17.🔗 Which words do you click on?
    <a href="quiz.html">Art corner</a>
    (a) href (b) Art corner (c) quiz.html (d) School news
  18. 18.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  19. 19.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) answers page requests (d) has an address bar
  20. 20.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
  21. 21.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ul>
  22. 22.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) <h1> (c) </h1> (d) <\h1>
  23. 23.🔠 Are headings shown in bold by default? (a) Yes (b) No
  24. 24.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  25. 25.🌐 Which one saves our .html files? (a) a code editor (b) a web browser (c) a web server
  26. 26.🔍 One closing tag is missing. Which one?
    <h3>My best friend</h3>
    <b>Hello, world!</b>
    <small>I love mangoes.
    (a) </u> (b) </b> (c) </small> (d) </h3>
  27. 27.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <p>Hello, world!</p>
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) Rain today (c) Our school trip (d) Hello, world!
  28. 28.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <p>Cricket is fun.</p>
    (a) My pets (b) I love mangoes. (c) Cricket is fun.
  29. 29.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) a closing tag (d) an attribute
  30. 30.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
  31. 31.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h5>
  32. 32.🔗 Which words do you click on?
    <a href="games.html">Visit the site</a>
    (a) Maths fun (b) Visit the site (c) href (d) games.html
  33. 33.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) quiz.html (b) Play games (c) games.html (d) about.html
  34. 34.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  35. 35.Which of these is true of a web server? (a) colours code to help us (b) shows pages from the web (c) stores a website’s files (d) turns HTML into a page
  36. 36.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour
  37. 37.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  38. 38.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  39. 39.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  40. 40.True or false: <input> is an empty tag. (a) True (b) False

Answer key

  1. Art corner
  2. 2
  3. in the body
  4. <table>
  5. a web browser
  6. </em>
  7. 2
  8. True
  9. numbers
  10. a closing tag
  11. <ol>
  12. <h1>
  13. <h6>
  14. <b>
  15. <!--
  16. True
  17. Art corner
  18. a closing tag
  19. has an address bar
  20. <h5>
  21. 6
  22. </h1>
  23. Yes
  24. an opening tag
  25. a code editor
  26. </small>
  27. Rain today
  28. I love mangoes.
  29. an attribute
  30. <h5>
  31. <h1>
  32. Visit the site
  33. quiz.html
  34. No
  35. stores a website’s files
  36. to leave notes
  37. has a closing tag
  38. an empty tag
  39. Yes
  40. True

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