← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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