CSS (New)

es.wikipedia.org

Stylesheet language for layout, typography, and responsive design on the modern web.

Overview

CSS (Cascading Style Sheets) is a specialized language for defining and managing the visual presentation of documents written in markup languages like HTML and XML. It works alongside HTML and JavaScript to create visually attractive web pages, user interfaces for web applications, and graphical interfaces for mobile applications.

CSS is designed to separate document content from presentation formatting, enabling better accessibility, flexibility, and code reusability. The same HTML document can be styled differently for various rendering methods—screen display, print, voice, and touch-based devices—and can adapt to different screen sizes and device types.

The CSS specification is maintained by the World Wide Web Consortium (W3C) and uses a cascading priority system to determine which style rules apply when multiple rules match an element, ensuring predictable and consistent results.

Key features

  • Selector-based styling
  • Cascading priority system
  • Support for layouts and positioning
  • Color and font customization
  • Responsive design capabilities
  • Pseudo-classes and pseudo-elements
  • Attribute selectors
  • Multiple CSS levels (CSS1, CSS2, CSS3, CSS4)
Pros
  • Separates content from presentation
  • Improves document accessibility
  • Enables code reusability across multiple documents
  • Supports multiple rendering methods
  • Reduces code complexity and repetition
  • Allows flexible style overrides
  • Open format maintained by W3C
Cons
  • Browser compatibility variations across versions
  • Learning curve for advanced selectors and specificity rules
  • Cascading rules can create unexpected style conflicts
Use this if
You need to style HTML documents, create responsive web designs, separate presentation from content, or build visually consistent user interfaces across web and mobile applications.
Skip this if
You are looking for a complete web development framework or a tool that handles both markup and styling in a single language.

Best for

Styling web pages and HTML documentsCreating responsive designsSeparating content from presentationBuilding user interfaces for web applicationsStyling mobile application GUIsCross-device rendering

Alternatives

SASSLESSPostCSSTailwind CSSBootstrapStyled Components

Compare CSS (New) alternatives

More Language

Compare all
View Zig
Zig

Low-level language aiming to be a modern, simpler alternative to C for systems code.

View Go
Go

Google's compiled language for simple, fast systems programming and cloud-native services.

View JavaScript
JavaScript

The web's core programming language for interactive pages, apps, and full-stack development.

View HTML5
HTML5

Standard markup language for structuring web pages, media, and semantic content.