← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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