← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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