← Paragraphs and line breaks lesson New set →

HTML Worksheet: Paragraphs and Line Breaks

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

Answer key

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

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