← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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