← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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