What is CSS?
Learn how CSS transforms plain HTML into beautiful, styled web pages.
Why does CSS exist?
In the early days of the web (early 1990s), there was no CSS. If you wanted colored text, you had to put style instructions directly inside your HTML tags. Every single heading, every paragraph, every link had style information mixed in with the content. Imagine writing an essay where every sentence also included instructions about its font and color — it would be unreadable.
CSS was created in 1996 to solve this problem. It separates what the content is (HTML) from how it looks (CSS). This separation is one of the most important ideas in web development, called separation of concerns.
With CSS, you write your styles in one place and they apply across your entire website. Want to change every heading on your 500-page site from blue to red? With CSS, you change one line. Without CSS, you would have to edit all 500 pages.