← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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