← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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