Developer Dictionary
CSS
Definition
Cascading Style Sheets; a language used for describing the presentation of a document written in a markup language.
Deep Dive
CSS, or Cascading Style Sheets, is a stylesheet language used for describing the presentation of a document written in a markup language like HTML or XML. It dictates how HTML elements should be displayed on screen, paper, or in other media, controlling aspects such as colors, fonts, layout, spacing, and animations. CSS fundamentally separates the structure and content of a webpage (HTML) from its visual presentation, providing web developers with powerful tools to create aesthetically pleasing, consistent, and responsive user interfaces.
Examples & Use Cases
- 1Defining the color, font-size, and line-height for all paragraphs on a website
- 2Styling a navigation bar to be responsive and collapse into a hamburger menu on mobile devices
- 3Applying a dark mode theme to a web application based on user preference
Related Terms
HTMLJavaScriptWeb DesignResponsive Design