← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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