← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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