← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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