← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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