← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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