← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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