← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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