← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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