← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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