← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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