← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

HTML and CSS lesson 4: Paragraphs and line breaks · Set 79 · 40 questions
TalentJR

Code tip (One p, one paragraph): Each <p> … </p> pair is one paragraph. Each <br> starts a new line: lines shown = number of <br> + 1. Empty tags (<br>, <img>, <hr>, <input>, <meta>) have no closing tag.

NameDateTime takenScore ___ / 40
  1. 1.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <p>The red kite</p>
    <h2>My best friend</h2>
  2. 2.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>Rain today</p>
    <p>Rain today</p>
    <p>My pets</p>
  3. 3.True or false: <h1> has a closing tag. (a) True (b) False
  4. 4.Which of these has a closing tag? (a) <input> (b) <br> (c) <li> (d) <img>
  5. 5.Which of these is an empty tag? (a) <h1> (b) <li> (c) <b> (d) <br>
  6. 6.Which of these has a closing tag? (a) <p> (b) <input> (c) <hr> (d) <br>
  7. 7.True or false: <input> is an empty tag. (a) False (b) True
  8. 8.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing</p>
  9. 9.True or false: <li> has a closing tag. (a) False (b) True
  10. 10.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as 5 spaces (c) as one space (d) as a dot
  11. 11.True or false: <b> is an empty tag. (a) True (b) False
  12. 12.Which of these is an empty tag? (a) <title> (b) <img> (c) <h1> (d) <b>
  13. 13.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  14. 14.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <h2>I love mangoes.</h2>
  15. 15.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>Fun facts</p>
    <p>My pets</p>
  16. 16.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  17. 17.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  18. 18.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Stars shine<br>Sky is blue<br>Roses are red<br>Kites fly high</p>
  19. 19.True or false: <p> is an empty tag. (a) True (b) False
  20. 20.True or false: <img> is an empty tag. (a) True (b) False
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Rivers flow<br>Kites fly high<br>Stars shine<br>Sky is blue</p>
  22. 22.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Rivers flow<br>Roses are red<br>Birds sing<br>Kites fly high</p>
  23. 23.Which of these has a closing tag? (a) <hr> (b) <ul> (c) <img> (d) <br>
  24. 24.Which of these has a closing tag? (a) <h1> (b) <br> (c) <meta> (d) <hr>
  25. 25.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  26. 26.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Stars shine</p>
  27. 27.📝 What does <br> do? (a) makes a list (b) makes text bold (c) adds a picture (d) starts a new line
  28. 28.Which of these is an empty tag? (a) <h1> (b) <li> (c) <title> (d) <hr>
  29. 29.True or false: <br> has a closing tag. (a) False (b) True
  30. 30.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>My pets</p>
    <h2>Good morning!</h2>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  31. 31.Which of these has a closing tag? (a) <meta> (b) <b> (c) <br> (d) <img>
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Kites fly high<br>Rivers flow<br>Roses are red</p>
  33. 33.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  34. 34.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue<br>Rivers flow<br>Kites fly high<br>Roses are red</p>
  36. 36.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Kites fly high<br>Sky is blue</p>
  37. 37.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  38. 38.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Birds sing<br>Rivers flow<br>Roses are red<br>Sky is blue</p>
  39. 39.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Kites fly high<br>Birds sing</p>
  40. 40.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>Cricket is fun.</h2>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <h2>I love mangoes.</h2>

Answer key

  1. 3
  2. 4
  3. True
  4. <li>
  5. <br>
  6. <p>
  7. True
  8. 2
  9. True
  10. as one space
  11. False
  12. <img>
  13. has a closing tag
  14. 3
  15. 3
  16. has a closing tag
  17. has a closing tag
  18. 5
  19. False
  20. True
  21. 5
  22. 5
  23. <ul>
  24. <h1>
  25. has a closing tag
  26. 2
  27. starts a new line
  28. <hr>
  29. False
  30. 4
  31. <b>
  32. 5
  33. an empty tag
  34. 3
  35. 5
  36. 3
  37. has a closing tag
  38. 5
  39. 3
  40. 3

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