← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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