← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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