← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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