← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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