block, and inline-block.

  • inline → does not start on a new line (span, a).
  • block → always starts on new line (div, p, h1).
  • inline-block → behaves inline but allows setting width/height.

Comments

Leave a Reply

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