← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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