← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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