← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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