← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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