- What is CSS2 and the differences between CSS and CSS2? - How it is useful for Web Designers / Developers?
CSS1 was adopted in 1996 and covered the basic selectors and cascade rules plus the 'crayola' properties; font properties, colors and backgrounds, the box properties, text properties, &c.. CSS2 was adopted in 1998. Since it added a lot of positioning stuff, it became known as css-p. It is not a separate thing, but an extension. The current candidate release (effectively the current recommendation) is css2.1 which further extends the standard and actually removes a few things that have not been implemented. It is helpful because it allows developers to create maintainable pages that sanely separate the structure and semantics of html from the presentation layer. For example, we can simply mark up a menu as a list without worrying about how it should be rendered—leaving that to the css. cheers, gary
I'd not use the term 'adopted' there - ratified would be more accurate. Let's face it, so far as 'adoption' goes 90% of CSS2 wasn't even deployable 'in the wild' until three years ago... and even Gecko hasn't fully finished off CSS2 support (despite wild claims to the contrary)