← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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