← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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