← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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