← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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