← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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