← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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