← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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