← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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