← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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