← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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