← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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