← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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