← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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