← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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