← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 552 · 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 tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  2. 2.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  3. 3.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  4. 4.📝 What does <br> do? (a) adds a picture (b) makes a list (c) makes text bold (d) starts a new line
  5. 5.Which of these is an opening tag? (a) </p> (b) </b> (c) <body> (d) </title>
  6. 6.🔗 What does HyperText mean? (a) secret text (b) text with links (c) text in colour (d) very big text
  7. 7.🔠 Are headings shown in bold by default? (a) No (b) Yes
  8. 8.📋 How many items does this list show?
    <ol>
      <li>Banana</li>
      <li>Mango</li>
    </ol>
  9. 9.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
  10. 10.🔗 Which words do you click on?
    <a href="news.html">Maths fun</a>
    (a) href (b) news.html (c) Art corner (d) Maths fun
  11. 11.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  12. 12.Which of these goes in the head? (a) <p> (b) <title> (c) <table> (d) <a>
  13. 13.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  14. 14.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>My pets</p>
    <p>The red kite</p>
    <p>My pets</p>
    <h2>My pets</h2>
  15. 15.💬 Does the browser show comments on the page? (a) Yes (b) No
  16. 16.True or false: <ul> lists things in any order. (a) False (b) True
  17. 17.🔠 Which tag is used for the main title on a page? (a) <br> (b) <p> (c) <h6> (d) <h1>
  18. 18.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Kites fly high</p>
  19. 19.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  20. 20.🔗 Where does this link open?
    <a href="contact.html" target="_blank">Contact us</a>
    (a) in a new tab (b) in the same tab
  21. 21.📄 What is the first line of an HTML5 page? (a) <html> (b) <!DOCTYPE html> (c) <head> (d) <body>
  22. 22.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <ol> (d) <hr>
  23. 23.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an element name (d) an attribute
  24. 24.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2/> (c) <h2> (d) </h2>
  25. 25.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
  26. 26.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  27. 27.📄 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>Mars is red.</p>
    </body>
    </html>
    (a) Cricket Club (b) Mars is red. (c) body (d) All about me
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>I love mangoes.</p>
  29. 29.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a slash / (c) a hash # (d) a dollar $
  30. 30.🔢 In a basic web page file, which comes LAST? (a) <html> (b) </head> (c) </body> (d) </html>
  31. 31.🔍 Which is the odd one out? (a) is where we type code (b) saves our .html files (c) turns HTML into a page (d) shows line numbers
  32. 32.🔍 One closing tag is missing. Which one?
    <small>Our school trip</small>
    <i>The red kite</i>
    <em>I love mangoes.
    (a) </i> (b) </em> (c) </small> (d) </b>
  33. 33.🔍 Which line is missing its closing tag?
    line 1: <h1>Rain today</h1>
    line 2: <em>I love mangoes.
    line 3: <i>My pets</i>
    (a) line 2 (b) line 1 (c) line 3
  34. 34.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  35. 35.🔍 One closing tag is missing. Which one?
    <small>Rain today</small>
    <i>Our school trip
    <h1>Good morning!</h1>
    (a) </h1> (b) </small> (c) </i> (d) </h2>
  36. 36.🔍 Which is the odd one out? (a) shows pages from the web (b) turns HTML into a page (c) has an address bar (d) answers page requests
  37. 37.True or false: in <img>, alt shows if the image fails. (a) True (b) False
  38. 38.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) < (d) (
  39. 39.🔠 How many headings are in this code?
    <h1>Our school trip</h1>
    <h3>My best friend</h3>
    <h2>I love mangoes.</h2>
    <p>The red kite</p>
    <h2>The red kite</h2>
  40. 40.Which of these goes in the body? (a) <style> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <ul>

Answer key

  1. <img>
  2. a closing tag
  3. <li>
  4. starts a new line
  5. <body>
  6. text with links
  7. Yes
  8. 2
  9. a web browser
  10. Maths fun
  11. numbers
  12. <title>
  13. No
  14. 4
  15. No
  16. True
  17. <h1>
  18. 2
  19. 2
  20. in a new tab
  21. <!DOCTYPE html>
  22. <ol>
  23. an attribute
  24. </h2>
  25. <h5>
  26. Yes
  27. All about me
  28. 2
  29. a slash /
  30. </html>
  31. turns HTML into a page
  32. </em>
  33. line 2
  34. a closing tag
  35. </i>
  36. answers page requests
  37. True
  38. <
  39. 4
  40. <ul>

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