← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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