← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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