← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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