← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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