← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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