🎨 CSS
📌 What is CSS?
CSS (Cascading Style Sheets) is a stylesheet language used to design and style HTML webpages.
While HTML provides the structure of a webpage, CSS controls how the webpage looks, including:
Colors Fonts Layouts Animations Spacing Responsive Design
Without CSS, websites would appear as plain text with basic formatting.
🚀 Why CSS?
CSS helps developers create visually appealing and user-friendly websites.
- Benefits include:
Better design and appearance Responsive layouts for different devices Faster website maintenance Improved user experience
🌟 Why CSS is Different from HTML?
HTML creates the structure of a webpage.
- Example:
This is a paragraph.
CSS styles that structure.
- Example:
h1 { color: blue; text-align: center; }
- 👉 HTML = Structure
- 👉 CSS = Design & Appearance
🏗️ Basic CSS Syntax
- selector { property: value; }