← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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