← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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