← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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