← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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