← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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