← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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