← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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