← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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