← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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