← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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