← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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