← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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