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?

  • 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.

Share on:
Online Certification Guide

About Author

Hey there, its OnlineCertificationGuide here to help you out in your Journey in the study. So my friend share the site with your friends in case I am helpful to you.