← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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