← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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