← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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