CSS

CSS (Cascading Style Sheets) is a style sheet language that can be used to define the visual representation of HTML or XML documents on the web.

Together with HTML, it is one of the core technologies of the World Wide Web and enables the separation of structure and design.

Functionality and Use

In practice, CSS is usually used in combination with HTML. While HTML structures the content, CSS handles the layout, colors, and typography. This allows content and design to be managed separately and presented consistently across multiple pages.

CSS rules determine which elements they are applied to (selector) and how to display them (declaration block with properties and values). Cascading means that styles are applied in a specific order; that is, later rules can override earlier ones, depending on their specificity (weight).

Illustration einer Person, die am Laptop sitzt und mit einer Benutzeroberfläche arbeitet, während Symbole für Standort, Nachrichten und Inhalte um sie herum angezeigt werden.

Examples

  • External CSS ensures uniform design on all sides
  • Media queries adjust the layout to smartphones and tablets
  • A CMS controls the design centrally via CSS files
  • Inline CSS changes the display of individual elements in the short term
What does "cascading" mean? falling