← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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