← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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