← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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