← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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