← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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