← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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