← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 999 · 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.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Fun facts</p> -->
    <p>Rain today</p>
  2. 2.Which of these is an opening tag? (a) </title> (b) </b> (c) <body> (d) </body>
  3. 3.Which of these is an empty tag? (a) <li> (b) <p> (c) <h1> (d) <hr>
  4. 4.True or false: <ul> shows bullet points. (a) True (b) False
  5. 5.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <p>The red kite</p>
    <p>My pets</p>
  6. 6.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) </small> (d) <small/>
  7. 7.📋 What number does the browser show next to “Grapes”?
    <ol start="8">
      <li>Mango</li>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
  8. 8.🔠 Are headings shown in bold by default? (a) Yes (b) No
  9. 9.True or false: <ol> is an ordered list. (a) True (b) False
  10. 10.🔗 Where does this link open?
    <a href="quiz.html">About us</a>
    (a) in the same tab (b) in a new tab
  11. 11.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h2>? (a) <h3> (b) <h1> (c) <h6> (d) <h2>
  12. 12.🌍 Which program shows a web page to us? (a) a web browser (b) a calculator (c) a music player (d) a paint program
  13. 13.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  14. 14.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>My pets</p>
    <p>Rain today</p>
    (a) My pets (b) Rain today (c) Our school trip
  15. 15.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
  16. 16.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ul> (d) <ol>
  17. 17.📝 What do we need to write HTML? (a) a plain text editor (b) a printer (c) a paintbrush (d) a microphone
  18. 18.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .png (d) .txt
  19. 19.🔗 Where does this link open?
    <a href="about.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  20. 20.True or false: <p> goes in the head. (a) True (b) False
  21. 21.Which of these is an empty tag? (a) <ul> (b) <br> (c) <h1> (d) <p>
  22. 22.🔗 Which address opens when you click this link?
    <a href="about.html">Maths fun</a>
    (a) Maths fun (b) https://example.com (c) contact.html (d) about.html
  23. 23.True or false: <li> has a closing tag. (a) False (b) True
  24. 24.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  25. 25.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
  26. 26.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  27. 27.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) My drawings (c) index.html (d) Art Gallery
  28. 28.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as a dot (c) as one space (d) as a new line
  29. 29.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Roses are red<br>Kites fly high<br>Rivers flow</p>
  30. 30.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
  31. 31.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
  32. 32.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
  33. 33.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
  34. 34.Which of these is an empty tag? (a) <img> (b) <b> (c) <title> (d) <h1>
  35. 35.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
  36. 36.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
  37. 37.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <br> (c) <p> (d) <h1>
  38. 38.🔍 One closing tag is missing. Which one?
    <strong>My pets
    <u>I love mangoes.</u>
    <b>Our school trip</b>
    (a) </u> (b) </strong> (c) </h1> (d) </b>
  39. 39.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  40. 40.True or false: <br> has a closing tag. (a) True (b) False

Answer key

  1. 2
  2. <body>
  3. <hr>
  4. True
  5. 4
  6. </small>
  7. 11
  8. Yes
  9. True
  10. in the same tab
  11. <h6>
  12. a web browser
  13. has a closing tag
  14. Our school trip
  15. a code editor
  16. <ol>
  17. a plain text editor
  18. .html
  19. in the same tab
  20. False
  21. <br>
  22. about.html
  23. True
  24. No
  25. <h1>
  26. has a closing tag
  27. Art Gallery
  28. as one space
  29. 4
  30. <ul>
  31. <ul>
  32. <h6>
  33. 1
  34. <img>
  35. on the browser tab
  36. <h2>
  37. <h1>
  38. </strong>
  39. Yes
  40. False

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