Quote:
Originally Posted by Solitaire1
Why is CSS so complicated? I thought the idea of it was to make formatting of HTML documents simple and consistent. I've looked at CSS and it seems overly complicated and confusing with a syntax that is different from HTML.
|
HTML is used for creating web pages. CSS is used to define how the the pages look. Totally different tasks.
To me, the syntax of CSS is not that confusing though as it has been added to in the different version, it has gotten more complex. But then if you look at how HTML has changed over the years, it's not that much better. Compare the simplicity of Tim Berners-Lee's
first web page to a modern web page with it's masses of code attempting to make a web page look somewhat the same across multiple browsers on multiple display devices using HTML5.