← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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