← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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