← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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