← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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