← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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