← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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