← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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