← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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