← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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