← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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