← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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