← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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