← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 200 · 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.True or false: a web browser hosts websites online. (a) True (b) False
  2. 2.🔍 One closing tag is missing. Which one?
    <p>Hello, world!
    <h2>Cricket is fun.</h2>
    <h3>Our school trip</h3>
    (a) </p> (b) </h3> (c) </i> (d) </h2>
  3. 3.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <li> (d) <p>
  4. 4.🌐 Which one colours code to help us? (a) a web server (b) a web browser (c) a code editor
  5. 5.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="300">
    (a) A happy dog (b) Birthday cake (c) width (d) cake.jpg
  6. 6.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  7. 7.Which of these is true of a web browser? (a) opens web pages for us (b) stores a website’s files (c) saves our .html files (d) answers page requests
  8. 8.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>I love mangoes.</h2>
    <h2>I love mangoes.</h2>
    <p>I love mangoes.</p>
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
  10. 10.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  11. 11.📋 How many items does this list show?
    <ul>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Orange</li>
    </ul>
  12. 12.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>My pets</p>
    <h3>Our school trip</h3>
    <h3>Hello, world!</h3>
    <p>Cricket is fun.</p>
  13. 13.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 6 (d) 10
  14. 14.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) turns HTML into a page (d) saves our .html files
  15. 15.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>My pets</p> -->
    <p>Rain today</p>
    (a) My pets (b) The red kite (c) Rain today
  16. 16.🏷️ Which is the closing tag for <small>? (a) <small> (b) <small/> (c) <\small> (d) </small>
  17. 17.🔍 Which is the odd one out? (a) opens web pages for us (b) shows pages from the web (c) has an address bar (d) stores a website’s files
  18. 18.🔗 Which tag makes a clickable link? (a) <link> (b) <a> (c) <p> (d) <img>
  19. 19.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>The red kite</p> -->
    <p>Good morning!</p>
    <p>My pets</p>
    (a) My pets (b) Good morning! (c) The red kite (d) Hello, world!
  20. 20.🔢 In a basic web page file, which comes first: “<body>” or “<head>”? (a) <head> (b) <body>
  21. 21.True or false: a code editor turns HTML into a page. (a) True (b) False
  22. 22.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Our school trip</p> -->
    <!-- <p>Cricket is fun.</p> -->
  23. 23.True or false: HTML on its own can add pictures to a page. (a) True (b) False
  24. 24.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  25. 25.🖼️ Which attribute of <img> describes the picture? (a) alt (b) width (c) src (d) height
  26. 26.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Cricket Club (b) Thanks for visiting. (c) All about me (d) body
  27. 27.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a dot (c) as a new line (d) as 5 spaces
  28. 28.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Markup (c) Modern (d) Mouse
  29. 29.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h6> (d) <h1>
  30. 30.True or false: <li> is an unordered list. (a) True (b) False
  31. 31.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <br> (d) <hr>
  32. 32.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>My best friend</p>
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    (a) Fun facts (b) Cricket is fun. (c) The red kite (d) My best friend
  33. 33.True or false: <br> has a closing tag. (a) False (b) True
  34. 34.Which of these is an opening tag? (a) </li> (b) </p> (c) </body> (d) <p>
  35. 35.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
    <p>Good morning!</p>
  36. 36.True or false: HTML on its own can make bullet lists. (a) False (b) True
  37. 37.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>Fun facts</p> -->
  38. 38.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
  39. 39.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  40. 40.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h2>? (a) <h4> (b) <h1> (c) <h6> (d) <h2>

Answer key

  1. False
  2. </p>
  3. <li>
  4. a code editor
  5. Birthday cake
  6. <
  7. opens web pages for us
  8. 2
  9. 1
  10. <ol>
  11. 4
  12. 3
  13. 6
  14. turns HTML into a page
  15. My pets
  16. </small>
  17. stores a website’s files
  18. <a>
  19. The red kite
  20. <head>
  21. False
  22. 1
  23. True
  24. an opening tag
  25. alt
  26. All about me
  27. as one space
  28. Markup
  29. <h6>
  30. False
  31. <ol>
  32. Cricket is fun.
  33. False
  34. <p>
  35. 2
  36. True
  37. 1
  38. <ul>
  39. in the head
  40. <h1>

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