← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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