← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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