← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 398 · 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 does this code make?
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    <h2>Fun facts</h2>
    <p>Our school trip</p>
    <p>Hello, world!</p>
  2. 2.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <table> (c) <title> (d) <style>
  3. 3.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>The red kite</p>
    <h2>My pets</h2>
    <h2>Fun facts</h2>
    <h2>Cricket is fun.</h2>
  4. 4.📄 Which part holds everything you see on the page? (a) the head (b) the doctype (c) the title (d) the body
  5. 5.📋 Which list suits a shopping list in any order? (a) <ul> (b) <br> (c) <hr> (d) <ol>
  6. 6.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
  7. 7.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
  8. 8.True or false: HTML on its own cannot count button clicks. (a) True (b) False
  9. 9.🔍 Which is the odd one out? (a) opens web pages for us (b) stores a website’s files (c) answers page requests (d) sends pages over the net
  10. 10.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>Rain today</p> -->
    <p>My pets</p>
    (a) My pets (b) Our school trip (c) Rain today
  11. 11.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->
    (a) Rain today (b) My best friend (c) Our school trip
  12. 12.Which of these is an opening tag? (a) </h1> (b) <body> (c) </title> (d) </p>
  13. 13.🏷️ HTML marks up text using ___. (a) keys (b) wires (c) pixels (d) tags
  14. 14.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
  15. 15.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers
  16. 16.Which of these goes in the head? (a) <title> (b) <ul> (c) <p> (d) <table>
  17. 17.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  18. 18.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  19. 19.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="100">
    (a) Birthday cake (b) moon.png (c) cake.jpg (d) dog.jpg
  20. 20.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
  21. 21.🔗 Which words do you click on?
    <a href="quiz.html">Visit the site</a>
    (a) quiz.html (b) Maths fun (c) href (d) Visit the site
  22. 22.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>My pets</p> -->
    <p>Rain today</p>
  23. 23.True or false: <p> goes in the head. (a) False (b) True
  24. 24.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My best friend</p> -->
  25. 25.True or false: a web server hosts websites online. (a) True (b) False
  26. 26.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing<br>Rivers flow<br>Kites fly high<br>Sky is blue</p>
  27. 27.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue<br>Birds sing<br>Rivers flow</p>
  28. 28.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </head> (c) </html> (d) <html>
  29. 29.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>Good morning!</p>
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    <!-- <p>My pets</p> -->
    <p>My best friend</p>
    <!-- <p>Fun facts</p> -->
  31. 31.True or false: <hr> is an empty tag. (a) True (b) False
  32. 32.True or false: <ul> is an unordered list. (a) True (b) False
  33. 33.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    (a) Our school trip (b) Cricket is fun. (c) My best friend
  34. 34.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h2> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
  35. 35.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
  36. 36.🔗 Which words do you click on?
    <a href="games.html">Art corner</a>
    (a) School news (b) Art corner (c) games.html (d) href
  37. 37.True or false: <title> goes in the head. (a) True (b) False
  38. 38.True or false: in <img>, alt tells which image to load. (a) True (b) False
  39. 39.🔍 Which is the odd one out? (a) has an address bar (b) answers page requests (c) shows pages from the web (d) turns HTML into a page
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Fun facts</p> -->
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>

Answer key

  1. 4
  2. <table>
  3. 2
  4. the body
  5. <ul>
  6. a web browser
  7. <ol>
  8. True
  9. opens web pages for us
  10. Rain today
  11. My best friend
  12. <body>
  13. tags
  14. 2
  15. bullets
  16. <title>
  17. Yes
  18. an empty tag
  19. cake.jpg
  20. 2
  21. Visit the site
  22. 1
  23. False
  24. 1
  25. True
  26. 5
  27. 4
  28. </html>
  29. 3
  30. 2
  31. True
  32. True
  33. Our school trip
  34. <h1>
  35. <a href="about.html">
  36. Art corner
  37. True
  38. False
  39. answers page requests
  40. 1

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