← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

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