← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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