← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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