← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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