← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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