← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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