← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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