← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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