← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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