← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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