← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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