← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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