Back to Topics

CSS Introduction

What is CSS?

CSS (Cascading Style Sheets) is the language used to style and design web pages. It controls everything from colors and fonts to layouts and animations, turning basic HTML into a beautiful user interface.

Types of CSS

CSS Syntax

The standard CSS rule consists of a selector and a declaration block:

selector {
    property: value;
    property: value;
}

Simple Example

This rule changes all paragraph text color to vibrant purple:

p {
    color: #8b5cf6;
    font-size: 18px;
}
View My Practice Work