← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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