← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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