← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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