← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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