← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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