← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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