← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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