← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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