← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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