← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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