← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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