← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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