← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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