← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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