Understanding CSS in Detail

1. Developed By and When

The concept of CSS was proposed by Håkon Wium Lie in October 1994.

Before CSS, people used ugly, clunky HTML tags like <font> , and table layouts to handle visual design directly inside the HTML — it was messy and inflexible.

2. What is CSS?

CSS stands for Cascading Style Sheets — it controls the style and layout of web pages (colors, fonts, spacing, positioning), separate from the HTML structure.

Why CSS related to W3C

Without W3C, we’d have a messy web where every browser might style things differently (like the old browser wars of the 90s).

3. Types of CSS

CSS can be applied in three different ways:

4. Use Cases of CSS

CSS is used for:

5. What are Properties and Values?

In CSS, a property is a styling rule (like color), and a value defines how that rule is applied (like blue).

CSS Cheatsheet

Example:

h1 { color: blue; font-size: 24px; }

6. History of CSS

CSS was proposed in 1994 and CSS1 was released in 1996. Then came CSS2 (1998), and CSS3 (2001), which introduced modular features like Flexbox, Grid, and animations.

7. Implementation of CSS in HTML

There are three main ways:

Example (Internal CSS):

<head>
  <style>
    body {
      background-color: #f4f4f4;
    }
  </style>
</head>

8. CSS Specificity

CSS specificity determines which rule wins when multiple CSS rules apply to the same element.

View in Detail