← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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