← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 886 · 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.🔠 Are headings shown in bold by default? (a) No (b) Yes
  2. 2.True or false: HTML on its own can run a game loop. (a) True (b) False
  3. 3.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Link (d) Line
  4. 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h5> (d) <h1>
  5. 5.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) about.html (b) Play games (c) quiz.html (d) games.html
  6. 6.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
  7. 7.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  8. 8.🔗 Which words do you click on?
    <a href="news.html">Take the quiz</a>
    (a) href (b) Take the quiz (c) news.html (d) Play games
  9. 9.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
  10. 10.🔍 Which line is missing its closing tag?
    line 1: <u>I love mangoes.
    line 2: <i>Good morning!</i>
    line 3: <h3>Rain today</h3>
    (a) line 2 (b) line 3 (c) line 1
  11. 11.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  12. 12.🔍 One closing tag is missing. Which one?
    <strong>Hello, world!</strong>
    <i>Good morning!
    <h3>Our school trip</h3>
    (a) </em> (b) </strong> (c) </h3> (d) </i>
  13. 13.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) is where we type code (d) stores a website’s files
  14. 14.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Orange</li>
    </ul>
    (a) numbers (b) bullets
  15. 15.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h2>Hello, world!</h2>
    <h4>My best friend</h4>
  16. 16.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Fun facts</p>
    <h4>Good morning!</h4>
  17. 17.📝 What does <br> do? (a) adds a picture (b) makes text bold (c) makes a list (d) starts a new line
  18. 18.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
    (a) bullets (b) numbers
  19. 19.Which of these is a closing tag? (a) <title> (b) </title> (c) <b> (d) <p>
  20. 20.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) about.html (b) contact.html (c) Contact us (d) games.html
  21. 21.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>I love mangoes.</p> -->
  22. 22.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
  23. 23.🔗 Which words do you click on?
    <a href="art.html">Take the quiz</a>
    (a) href (b) art.html (c) Take the quiz (d) Play games
  24. 24.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>The red kite</p>
    <p>Fun facts</p>
  25. 25.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
  26. 26.🔗 Which address opens when you click this link?
    <a href="art.html">About us</a>
    (a) quiz.html (b) About us (c) art.html (d) news.html
  27. 27.🖼️ Which attribute of <img> describes the picture? (a) height (b) src (c) alt (d) width
  28. 28.🔍 Which line is missing its closing tag?
    line 1: <strong>My pets</strong>
    line 2: <b>My best friend</b>
    line 3: <i>Fun facts
    (a) line 3 (b) line 2 (c) line 1
  29. 29.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  30. 30.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) src (c) alt (d) width
  31. 31.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  32. 32.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Rain today</p>
  33. 33.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  34. 34.True or false: in <img>, src sets how tall it is. (a) False (b) True
  35. 35.True or false: <h1> goes in the head. (a) True (b) False
  36. 36.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  37. 37.🏷️ Which is the closing tag for <h3>? (a) <h3> (b) <\h3> (c) </h3> (d) <h3/>
  38. 38.Which of these is an opening tag? (a) <title> (b) </body> (c) </h1> (d) </li>
  39. 39.💬 How does an HTML comment end? (a) // (b) */ (c) --> (d) >>
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    <!-- <p>The red kite</p> -->

Answer key

  1. Yes
  2. False
  3. Language
  4. <h1>
  5. quiz.html
  6. <ol>
  7. in a new tab
  8. Take the quiz
  9. a paragraph
  10. line 1
  11. numbers
  12. </i>
  13. is where we type code
  14. bullets
  15. 3
  16. 2
  17. starts a new line
  18. numbers
  19. </title>
  20. games.html
  21. 1
  22. False
  23. Take the quiz
  24. 3
  25. <
  26. art.html
  27. alt
  28. line 3
  29. bullets
  30. height
  31. <ol>
  32. 1
  33. an empty tag
  34. False
  35. False
  36. in the head
  37. </h3>
  38. <title>
  39. -->
  40. 1

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