← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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