← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 800 · 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 is the odd one out? (a) stores a website’s files (b) answers page requests (c) sends pages over the net (d) colours code to help us
  2. 2.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h6> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
  3. 3.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  4. 4.📋 Which list tag is one item of a list? (a) <ul> (b) <li> (c) <ol>
  5. 5.🔢 In a basic web page file, which comes first: “</head>” or “</body>”? (a) </body> (b) </head>
  6. 6.🔗 Which words do you click on?
    <a href="news.html">Maths fun</a>
    (a) news.html (b) Maths fun (c) href (d) Art corner
  7. 7.Which of these is true of a web server? (a) shows pages from the web (b) colours code to help us (c) hosts websites online (d) has an address bar
  8. 8.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ul>
  9. 9.Which of these is true of a web browser? (a) colours code to help us (b) answers page requests (c) sends pages over the net (d) shows pages from the web
  10. 10.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  11. 11.🔠 How many headings are in this code?
    <h1>Our school trip</h1>
    <p>Hello, world!</p>
    <p>My best friend</p>
    <p>Rain today</p>
  12. 12.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>Rain today</h3>
    <p>The red kite</p>
    <h4>Cricket is fun.</h4>
  13. 13.💬 How does an HTML comment end? (a) // (b) --> (c) */ (d) >>
  14. 14.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) </i> (d) <\i>
  15. 15.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My Hobbies (b) body (c) I like to read. (d) Match report
  16. 16.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <h2> (c) </h2> (d) <\h2>
  17. 17.📝 What does <hr> draw? (a) a table (b) a picture (c) a link (d) a line across the page
  18. 18.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
  19. 19.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="100">
    (a) tiger.jpg (b) An old fort (c) fort.jpg (d) kite.png
  20. 20.📄 Which part holds everything you see on the page? (a) the doctype (b) the head (c) the title (d) the body
  21. 21.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) in a big heading (d) at the bottom
  22. 22.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
  23. 23.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
  24. 24.🔍 Which is the odd one out? (a) has an address bar (b) stores a website’s files (c) shows pages from the web (d) turns HTML into a page
  25. 25.📋 What number does the browser show next to “Banana”?
    <ol start="7">
      <li>Grapes</li>
      <li>Guava</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Banana</li>
    </ol>
  26. 26.True or false: <table> goes in the body. (a) False (b) True
  27. 27.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
  28. 28.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  29. 29.Which of these is an opening tag? (a) </h1> (b) </b> (c) <h1> (d) </p>
  30. 30.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <html> (d) <body>
  31. 31.Which of these is true of a web server? (a) turns HTML into a page (b) saves our .html files (c) answers page requests (d) colours code to help us
  32. 32.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <p> (d) <link>
  33. 33.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
  34. 34.🔗 Where does this link open?
    <a href="https://example.com">Maths fun</a>
    (a) in the same tab (b) in a new tab
  35. 35.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h6> or <h1>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
  36. 36.Which of these is true of a web browser? (a) sends pages over the net (b) shows line numbers (c) is where we type code (d) turns HTML into a page
  37. 37.💬 Does the browser show comments on the page? (a) No (b) Yes
  38. 38.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>My pets</p> -->
    <!-- <p>I love mangoes.</p> -->
  39. 39.True or false: a web browser has an address bar. (a) False (b) True
  40. 40.📄 Can HTML on its own make headings? (a) No (b) Yes

Answer key

  1. colours code to help us
  2. <h6>
  3. Yes
  4. <li>
  5. </head>
  6. Maths fun
  7. hosts websites online
  8. 4
  9. shows pages from the web
  10. No
  11. 1
  12. 3
  13. -->
  14. </i>
  15. Match report
  16. </h2>
  17. a line across the page
  18. tags
  19. fort.jpg
  20. the body
  21. on the browser tab
  22. a web server
  23. a web browser
  24. stores a website’s files
  25. 11
  26. True
  27. </strong>
  28. an opening tag
  29. <h1>
  30. <!DOCTYPE html>
  31. answers page requests
  32. <a>
  33. a code editor
  34. in the same tab
  35. <h6>
  36. turns HTML into a page
  37. No
  38. 1
  39. True
  40. Yes

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