← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 643 · 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 heading shows the SMALLEST text: <h2>, <h6>, <h5> or <h4>? (a) <h5> (b) <h4> (c) <h2> (d) <h6>
  2. 2.True or false: <ul> is an unordered list. (a) True (b) False
  3. 3.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Cricket is fun.</p> -->
  4. 4.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Modern (c) Mouse (d) Markup
  5. 5.Which of these is true of a web browser? (a) is where we type code (b) stores a website’s files (c) shows line numbers (d) turns HTML into a page
  6. 6.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) text with links (d) very big text
  7. 7.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  8. 8.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
    (a) My pets (b) I love mangoes. (c) Rain today
  9. 9.True or false: <hr> is an empty tag. (a) True (b) False
  10. 10.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="100">
    (a) A red kite (b) kite.png (c) cake.jpg (d) map.png
  11. 11.🔗 Which address opens when you click this link?
    <a href="maths.html">About us</a>
    (a) news.html (b) maths.html (c) art.html (d) About us
  12. 12.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  13. 13.🔗 Which words do you click on?
    <a href="games.html">School news</a>
    (a) href (b) games.html (c) Take the quiz (d) School news
  14. 14.📄 Can HTML on its own make a form? (a) No (b) Yes
  15. 15.🔗 Which words do you click on?
    <a href="maths.html">Art corner</a>
    (a) School news (b) maths.html (c) Art corner (d) href
  16. 16.Which of these is a closing tag? (a) <title> (b) <h1> (c) <p> (d) </b>
  17. 17.🖼️ Which attribute of <img> describes the picture? (a) src (b) alt (c) width (d) height
  18. 18.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) width (b) tiger.jpg (c) A tiger asleep (d) A red kite
  19. 19.📋 What number does the browser show next to “Orange”?
    <ol start="3">
      <li>Mango</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
  20. 20.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
  21. 21.Which of these goes in the head? (a) <img> (b) <style> (c) <table> (d) <p>
  22. 22.True or false: <img> goes in the head. (a) False (b) True
  23. 23.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) sound (d) structure
  24. 24.🔗 Which address opens when you click this link?
    <a href="news.html">School news</a>
    (a) quiz.html (b) news.html (c) games.html (d) School news
  25. 25.Which of these goes in the body? (a) <style> (b) <h1> (c) <link rel="stylesheet"> (d) <meta charset="utf-8">
  26. 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  27. 27.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
  28. 28.🔗 Which words do you click on?
    <a href="games.html">Contact us</a>
    (a) games.html (b) Contact us (c) href (d) Visit the site
  29. 29.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  30. 30.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  31. 31.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  32. 32.🔤 In “HTML”, what does the L stand for? (a) Link (b) Language (c) Line (d) Laptop
  33. 33.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="300">
  35. 35.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Cricket Club (b) body (c) I like to read. (d) Welcome!
  36. 36.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Fun facts</p>
    <h4>Hello, world!</h4>
    <p>Our school trip</p>
  37. 37.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
  38. 38.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  39. 39.🏷️ Which is the closing tag for <em>? (a) <em/> (b) <\em> (c) <em> (d) </em>
  40. 40.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h2>My pets</h2>
    <p>Cricket is fun.</p>

Answer key

  1. <h6>
  2. True
  3. 2
  4. Markup
  5. turns HTML into a page
  6. text with links
  7. a closing tag
  8. Rain today
  9. True
  10. kite.png
  11. maths.html
  12. <ul>
  13. School news
  14. Yes
  15. Art corner
  16. </b>
  17. alt
  18. A tiger asleep
  19. 4
  20. the body
  21. <style>
  22. False
  23. structure
  24. news.html
  25. <h1>
  26. in the body
  27. 1
  28. Contact us
  29. an opening tag
  30. <h1>
  31. has a closing tag
  32. Language
  33. <
  34. 300
  35. Welcome!
  36. 2
  37. <h6>
  38. <h1>
  39. </em>
  40. 2

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