← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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