← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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