← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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