← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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