← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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