← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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