← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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