← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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