← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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