← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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