← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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