← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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