← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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