← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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