← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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