← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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