← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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