← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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