← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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