← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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