concept

Declaration block

A declaration block groups property assignments in a rule. In ordinary flat CSS, braces surround the group. Do not omit a semicolon between adjacent declarations; the last semicolon in a simple block is optional.

Formal Syntax & Structure

css syntaxcss
{ color: #184168; font-size: 20px; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>CSS reference demo</title><style>#sample { color: #184168; font-size: 20px }</style></head><body><p id="sample">A field note from the coast.</p></body></html>
CSS Reference