← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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