← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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