CSS Syntax

A CSS comprises of style rules that are interpreted by the browser and then applied to elements in your document. A style rule is made of three parts –

Selector-

A selector is an HTML tag at which a style will be applied.

Property-

A property is a type of attribute of HTML tag.

Value-

Values are assigned to properties.


Example

Try It Yourself