← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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