Explain the display property and some of its values.

The display property defines how elements are displayed. Common values include:

  • block: Takes up the full width.
  • inline: Takes up only as much space as needed.
  • flex: Enables Flexbox layout.