← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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