← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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