[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World

Cascading Style Sheet (CSS)

Definition - What does Cascading Style Sheet (CSS) mean?

Cascading Style Sheets (CSS) is a standard (or language) that describes the formatting of markup language pages. CSS defines formatting for the following document types:

  • HyperText Markup Language (HTML)
  • Extensible HyperText Markup Language (XHTML)
  • Extensible Markup Language (XML)
  • Scalable Vector Graphic (SVG)
  • XML User Interface Language (XUL)

CSS enables developers to separate content and visual elements for greater page control and flexibility. A CSS file is normally attached to an HTML file by means of a link in the HTML file.

In December 1998, the World Wide Web Consortium (W3C) published the first CSS specification (CSS1). This was followed by CSS Level 2 (CSS2), and CSS Level 2, Revision 1 (CSS2.1)

Techopedia explains Cascading Style Sheet (CSS)

HTML document formatting was tedious and complex before CSS because of built-in HTML style attributes. Specifically, styled tags required detailed and repetitious descriptions of the following elements:

  • Font colors
  • Background styles
  • Element alignments
  • Borders
  • Sizes

CSS structurally defines elements for headings (h1), sub-headings (h2), sub-sub-headings (h3), etc. Element options are available for font, color, emphasis, size, etc.

CSS allows developers to move styling elements to a separate HTML area for clean markup. For example, if a developer wanted to change the font for all h2 headings in an HTML file, a single change could be made to the attached CSS file. If no CSS file was attached, the developer would have to change the font option for each h2 heading in the main HTML file.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.