← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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