← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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