← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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