← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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