← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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