← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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