← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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