← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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