← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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