← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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