← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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