← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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