← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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