← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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