← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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