← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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