← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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