← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 561 · 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="contact.html">Take the quiz</a>
    (a) href (b) contact.html (c) Play games (d) Take the quiz
  2. 2.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
  3. 3.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Our school trip</p>
    <h2>My best friend</h2>
  4. 4.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h1> (b) <h6> (c) <h3> (d) <h5>
  5. 5.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Hello, world!</p>
    <p>The red kite</p>
    <h4>The red kite</h4>
    <p>Rain today</p>
  6. 6.📋 What number does the browser show next to “Papaya”?
    <ol start="2">
      <li>Mango</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  7. 7.True or false: HTML on its own can run a game loop. (a) False (b) True
  8. 8.🔢 In a basic web page file, which comes LAST? (a) </body> (b) <!DOCTYPE html> (c) </html> (d) <html>
  9. 9.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  10. 10.🔍 One closing tag is missing. Which one?
    <em>Cricket is fun.</em>
    <p>Rain today</p>
    <strong>I love mangoes.
    (a) </strong> (b) </em> (c) </h3> (d) </p>
  11. 11.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
  12. 12.📄 Can HTML on its own add up two numbers? (a) No (b) Yes
  13. 13.True or false: a web server shows line numbers. (a) False (b) True
  14. 14.True or false: <br> has a closing tag. (a) True (b) False
  15. 15.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) [ (d) (
  16. 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  17. 17.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>My best friend</p>
  18. 18.True or false: <hr> is an empty tag. (a) False (b) True
  19. 19.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="50">
    (a) cake.jpg (b) A red kite (c) map.png (d) kite.png
  20. 20.🧱 HTML gives a web page its ___. (a) colours (b) sound (c) speed (d) structure
  21. 21.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
  22. 22.🔗 Where does this link open?
    <a href="art.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  23. 23.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
  24. 24.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) on the browser tab (d) nowhere
  25. 25.🔍 One closing tag is missing. Which one?
    <h2>My best friend</h2>
    <em>My pets</em>
    <small>Hello, world!
    (a) </h2> (b) </em> (c) </h3> (d) </small>
  26. 26.🔗 Which words do you click on?
    <a href="maths.html">Visit the site</a>
    (a) maths.html (b) href (c) Maths fun (d) Visit the site
  27. 27.True or false: HTML on its own cannot make tables. (a) True (b) False
  28. 28.🔍 One closing tag is missing. Which one?
    <h2>My best friend</h2>
    <h1>My pets</h1>
    <strong>Rain today
    (a) </h1> (b) </strong> (c) </h2> (d) </small>
  29. 29.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  30. 30.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h2> or <h6>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
  31. 31.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) School news (b) Take the quiz (c) art.html (d) href
  32. 32.🔍 Which is the odd one out? (a) shows pages from the web (b) opens web pages for us (c) answers page requests (d) turns HTML into a page
  33. 33.🔍 One closing tag is missing. Which one?
    <small>My pets</small>
    <p>The red kite</p>
    <u>Hello, world!
    (a) </h1> (b) </u> (c) </p> (d) </small>
  34. 34.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Our school trip</p>
    <!-- <p>Cricket is fun.</p> -->
    (a) My best friend (b) Cricket is fun. (c) Our school trip
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="250">
  36. 36.🔗 Where does this link open?
    <a href="art.html" target="_blank">Maths fun</a>
    (a) in a new tab (b) in the same tab
  37. 37.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <img> (d) <p>
  38. 38.Which of these is an opening tag? (a) <body> (b) </b> (c) </h1> (d) </li>
  39. 39.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <h3>My best friend</h3>
    <h3>Good morning!</h3>
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Fun facts</p>
    <p>Our school trip</p>
    <p>Rain today</p>
    (a) Our school trip (b) Good morning! (c) Fun facts (d) Rain today

Answer key

  1. Take the quiz
  2. 1
  3. 2
  4. <h6>
  5. 2
  6. 3
  7. False
  8. </html>
  9. Yes
  10. </strong>
  11. 6
  12. No
  13. False
  14. False
  15. <
  16. a closing tag
  17. 4
  18. True
  19. kite.png
  20. structure
  21. in the body
  22. in a new tab
  23. in the body
  24. on the browser tab
  25. </small>
  26. Visit the site
  27. False
  28. </strong>
  29. <h5>
  30. <h6>
  31. School news
  32. answers page requests
  33. </u>
  34. Cricket is fun.
  35. 250
  36. in a new tab
  37. <img>
  38. <body>
  39. 3
  40. Good morning!

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