← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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