← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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