← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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