← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 271 · 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 list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ol> (d) <ul>
  2. 2.Which of these is an opening tag? (a) </li> (b) <p> (c) </p> (d) </h1>
  3. 3.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>I love mangoes.</p>
    <h2>Good morning!</h2>
    <h4>Hello, world!</h4>
  4. 4.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Match report (b) Thanks for visiting. (c) Art Gallery (d) body
  5. 5.🔗 Which words do you click on?
    <a href="maths.html">Maths fun</a>
    (a) Maths fun (b) maths.html (c) Art corner (d) href
  6. 6.🔗 Which address opens when you click this link?
    <a href="art.html">School news</a>
    (a) news.html (b) quiz.html (c) art.html (d) School news
  7. 7.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  8. 8.🔗 Which address opens when you click this link?
    <a href="maths.html">Art corner</a>
    (a) art.html (b) news.html (c) Art corner (d) maths.html
  9. 9.🔗 Which words do you click on?
    <a href="art.html">About us</a>
    (a) About us (b) href (c) Contact us (d) art.html
  10. 10.Which of these is a closing tag? (a) </body> (b) <body> (c) <title> (d) <h1>
  11. 11.True or false: in <img>, height describes the picture. (a) False (b) True
  12. 12.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <h4>The red kite</h4>
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Cricket is fun.</p> -->
  14. 14.Which of these is true of a web server? (a) turns HTML into a page (b) colours code to help us (c) has an address bar (d) answers page requests
  15. 15.🔗 Where does this link open?
    <a href="maths.html">Maths fun</a>
    (a) in the same tab (b) in a new tab
  16. 16.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
  17. 17.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  18. 18.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h6> (b) <h2> (c) <h5> (d) <h4>
  19. 19.💬 How does an HTML comment end? (a) // (b) >> (c) */ (d) -->
  20. 20.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
  21. 21.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 6 (d) 4
  22. 22.Which of these is true of a code editor? (a) hosts websites online (b) shows line numbers (c) answers page requests (d) has an address bar
  23. 23.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
  24. 24.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue<br>Roses are red<br>Kites fly high</p>
  25. 25.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
  26. 26.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
  27. 27.📄 Can HTML on its own make tables? (a) Yes (b) No
  28. 28.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
  29. 29.🔍 One closing tag is missing. Which one?
    <strong>Fun facts</strong>
    <p>My best friend
    <u>My pets</u>
    (a) </u> (b) </strong> (c) </h3> (d) </p>
  30. 30.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
  31. 31.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    (a) Rain today (b) The red kite (c) Cricket is fun.
  32. 32.True or false: in <img>, height sets how tall it is. (a) True (b) False
  33. 33.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  34. 34.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) <h1> (c) </h1> (d) <\h1>
  35. 35.True or false: HTML on its own can make tables. (a) True (b) False
  36. 36.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
  37. 37.🔍 Which is the odd one out? (a) shows line numbers (b) stores a website’s files (c) saves our .html files (d) is where we type code
  38. 38.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Birds sing</p>
  39. 39.True or false: in <img>, src names the picture file. (a) False (b) True
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Stars shine</p>

Answer key

  1. <ol>
  2. <p>
  3. 3
  4. Match report
  5. Maths fun
  6. art.html
  7. Yes
  8. maths.html
  9. About us
  10. </body>
  11. False
  12. 2
  13. 1
  14. answers page requests
  15. in the same tab
  16. <!--
  17. 5
  18. <h2>
  19. -->
  20. in the body
  21. 6
  22. shows line numbers
  23. <ol>
  24. 4
  25. <img>
  26. text with links
  27. Yes
  28. <h2>
  29. </p>
  30. True
  31. Rain today
  32. True
  33. a closing tag
  34. </h1>
  35. True
  36. 3
  37. stores a website’s files
  38. 2
  39. True
  40. 2

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