What is CSS?

CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation (look and feel) of a web page written in HTML. While HTML provides the structure and content, CSS is used to control layout, colors, fonts, spacing, alignment, and visual effects of web elements.

Linking the styles to document:

The <link> tag is the standard and recommended way to link an external stylesheet to an HTML document.

<link rel="stylesheet" href="style.css">

Different Way to Style CSS

Selectors:

Pseudo Classes and Pseudo Elements

Combinators

Cascading Nature of CSS

CSS Display

The CSS Box Model

Box Sizing

Margin, Padding, and Borders

CSS Units

CSS Backgrounds