What is CSS?
CSS (Cascading Style Sheets) is used to style and format HTML content. It lets you control layout, colors, fonts, spacing, and even animations.
Why Use CSS?
- Separate content from design.
- Keep a consistent style across pages.
- Improve maintainability of websites.
Ways to Apply CSS
- Inline: Style applied directly in HTML.
- Internal: Using a <style> block in the HTML head.
- External: Linking to a .css file (recommended).