← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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