← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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