← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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