← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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