CSS Syntax

CSS Syntax

A CSS rule consists of a selector and a declaration block.

Example

p { color: blue; }

Click on the "Try it Yourself" button to see how it works.

Try it Yourself »