← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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