If the bottom margin of a

element is currently set to zero, which of the following could account for the fact that there is still space between two consecutive paragraphs on a page?

Coding For Designers
  • The space between <p> elements cannot be removed using CSS
  • The <p> elements automatically have margin-top, which must also be reset
  • The <p> elements automatically have padding, which must also be reset
  • The height of the <p> elements must be set in CSS to remove the space

EXPLANATION

Elements like <h1>–<h6> and <p> have a default margin-top and margin-bottom and setting both to zero will remove the spacing completely.

Leave a Reply

Your email address will not be published. Required fields are marked *