← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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