← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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