← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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