concept

Stylesheet

A stylesheet is a collection of CSS rules that can influence a document. It can be linked as a separate resource or embedded in HTML. A file alone has no effect until it is associated with a document and its rules apply.

Formal Syntax & Structure

css syntaxcss
/* CSS stylesheet */.note { color: #184168; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>CSS reference demo</title><style>.note { color: #184168; }</style></head><body><p id="sample" class="note">Field note</p></body></html>
CSS Reference