Grok-Pedia

CSS

CSS (Cascading Style Sheets)

CSS, or Cascading Style Sheets, is a stylesheet language used to describe the look and formatting of documents written in HTML, XHTML, or XML. CSS provides the ability to separate the presentation from the content, which makes it easier to maintain and scale web pages.

History

Key Concepts

Usage

CSS can be applied to a document in three ways:

  1. Inline: Applied directly to an HTML element using the `style` attribute.
  2. Internal: Placed within the `