← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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