CSS for Beginners

What is CSS?

CSS (Cascading Style Sheets) is used to style and layout web pages. It controls the look and feel of your site.

Basic CSS Syntax

CSS rules consist of selectors and declarations. A simple rule looks like this:

selector { property: value; }

Applying CSS to HTML

You can apply CSS inline, internally, or externally. External stylesheets are recommended for larger projects.