← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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