← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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