← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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