← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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