← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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