← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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