← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 854 · 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.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  2. 2.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
  3. 3.Which of these is true of a code editor? (a) shows pages from the web (b) hosts websites online (c) answers page requests (d) colours code to help us
  4. 4.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  5. 5.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <h2>Our school trip</h2>
    <h2>Fun facts</h2>
    <p>Our school trip</p>
    <h2>I love mangoes.</h2>
  6. 6.🔍 Which line is missing its closing tag?
    line 1: <h1>My pets</h1>
    line 2: <h3>Fun facts</h3>
    line 3: <b>Our school trip
    (a) line 2 (b) line 1 (c) line 3
  7. 7.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  8. 8.🏷️ HTML marks up text using ___. (a) keys (b) wires (c) pixels (d) tags
  9. 9.🔠 Are headings shown in bold by default? (a) Yes (b) No
  10. 10.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  11. 11.📋 Which list tag goes inside ul or ol? (a) <li> (b) <ol> (c) <ul>
  12. 12.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Fun facts</p>
    <p>My best friend</p>
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
  13. 13.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 6 (d) 3
  14. 14.📄 Can HTML on its own make links to pages? (a) No (b) Yes
  15. 15.🔗 Which words do you click on?
    <a href="art.html">Take the quiz</a>
    (a) Take the quiz (b) href (c) Play games (d) art.html
  16. 16.True or false: HTML on its own cannot make headings. (a) False (b) True
  17. 17.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h4>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
  18. 18.True or false: <style> goes in the head. (a) False (b) True
  19. 19.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h1>? (a) <h6> (b) <h4> (c) <h3> (d) <h1>
  20. 20.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) width (c) alt (d) height
  21. 21.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
  22. 22.📋 What number does the browser show next to “Guava”?
    <ol start="9">
      <li>Orange</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
  23. 23.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="400">
    (a) Birthday cake (b) moon.png (c) dog.jpg (d) cake.jpg
  24. 24.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  25. 25.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  26. 26.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    <p>The red kite</p>
  27. 27.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
  28. 28.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) shows line numbers (d) turns HTML into a page
  29. 29.True or false: in <img>, src sets how tall it is. (a) True (b) False
  30. 30.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Roses are red<br>Rivers flow</p>
  31. 31.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  32. 32.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h2>My pets</h2>
    <p>Hello, world!</p>
    <p>My best friend</p>
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>My pets</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>My best friend</p> -->
  34. 34.True or false: HTML on its own cannot make tables. (a) False (b) True
  35. 35.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h4>My best friend</h4>
    <h2>Good morning!</h2>
    <h3>I love mangoes.</h3>
    <p>Hello, world!</p>
  36. 36.📋 What number does the browser show next to “Jamun”?
    <ol start="4">
      <li>Guava</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Banana</li>
    </ol>
  37. 37.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2/> (c) <h2> (d) </h2>
  38. 38.True or false: <ul> is one item of a list. (a) False (b) True
  39. 39.🔍 One closing tag is missing. Which one?
    <u>My best friend
    <h3>Our school trip</h3>
    <p>Good morning!</p>
    (a) </h3> (b) </u> (c) </i> (d) </p>
  40. 40.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>

Answer key

  1. False
  2. <ol>
  3. colours code to help us
  4. <ul>
  5. 3
  6. line 3
  7. in the head
  8. tags
  9. Yes
  10. 2
  11. <li>
  12. 4
  13. 1
  14. Yes
  15. Take the quiz
  16. False
  17. <h1>
  18. True
  19. <h1>
  20. height
  21. False
  22. 14
  23. cake.jpg
  24. a closing tag
  25. <ol>
  26. 2
  27. 3
  28. turns HTML into a page
  29. False
  30. 3
  31. No
  32. 2
  33. 2
  34. False
  35. 4
  36. 5
  37. </h2>
  38. False
  39. </u>
  40. <li>

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