← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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