← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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