← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 25 · 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.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  2. 2.💬 How does an HTML comment end? (a) --> (b) */ (c) >> (d) //
  3. 3.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>My best friend</p>
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
    (a) Good morning! (b) Fun facts (c) The red kite (d) My best friend
  4. 4.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <body> (d) <html>
  5. 5.Which of these is a closing tag? (a) <b> (b) <title> (c) </li> (d) <h1>
  6. 6.True or false: a web server hosts websites online. (a) False (b) True
  7. 7.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  8. 8.True or false: HTML on its own can make headings. (a) False (b) True
  9. 9.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
  10. 10.True or false: a web server answers page requests. (a) False (b) True
  11. 11.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <h2>Rain today</h2>
    <p>Hello, world!</p>
    <h2>My pets</h2>
    <p>Rain today</p>
  12. 12.🔗 Which address opens when you click this link?
    <a href="news.html">Visit the site</a>
    (a) Visit the site (b) quiz.html (c) games.html (d) news.html
  13. 13.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    <p>My best friend</p>
  14. 14.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) body (b) Mars is red. (c) Cricket Club (d) Easy snacks
  15. 15.True or false: <li> lists things in any order. (a) True (b) False
  16. 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  17. 17.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  18. 18.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    (a) My pets (b) I love mangoes. (c) Hello, world!
  19. 19.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
  20. 20.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h4>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
  21. 21.True or false: a web browser hosts websites online. (a) False (b) True
  22. 22.🔗 Which address opens when you click this link?
    <a href="games.html">About us</a>
    (a) games.html (b) About us (c) about.html (d) contact.html
  23. 23.True or false: <h1> is an empty tag. (a) True (b) False
  24. 24.Which of these is true of a web browser? (a) shows line numbers (b) opens web pages for us (c) is where we type code (d) saves our .html files
  25. 25.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  26. 26.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
  27. 27.True or false: <input> is an empty tag. (a) False (b) True
  28. 28.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  29. 29.🔢 In a basic web page file, which comes first: “</html>” or “<head>”? (a) </html> (b) <head>
  30. 30.True or false: <p> goes in the head. (a) False (b) True
  31. 31.🌍 Which program shows a web page to us? (a) a web browser (b) a paint program (c) a calculator (d) a music player
  32. 32.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ul>
  33. 33.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  34. 34.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  35. 35.True or false: HTML on its own can make a form. (a) True (b) False
  36. 36.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <p>Our school trip</p>
    <!-- <p>The red kite</p> -->
    (a) The red kite (b) Hello, world! (c) Good morning! (d) Our school trip
  37. 37.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  38. 38.Which of these is an opening tag? (a) </body> (b) </h1> (c) </li> (d) <p>
  39. 39.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
  40. 40.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h3>? (a) <h2> (b) <h5> (c) <h3> (d) <h6>

Answer key

  1. in the head
  2. -->
  3. Fun facts
  4. <!DOCTYPE html>
  5. </li>
  6. True
  7. bullets
  8. True
  9. <
  10. True
  11. 4
  12. news.html
  13. 3
  14. Easy snacks
  15. False
  16. a closing tag
  17. Yes
  18. I love mangoes.
  19. <a href="about.html">
  20. <h1>
  21. False
  22. games.html
  23. False
  24. opens web pages for us
  25. <li>
  26. a slash /
  27. True
  28. an opening tag
  29. <head>
  30. False
  31. a web browser
  32. 6
  33. has a closing tag
  34. in the body
  35. True
  36. The red kite
  37. an empty tag
  38. <p>
  39. 1
  40. <h6>

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