← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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