← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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