← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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