concept
CSS style rule
A style rule associates a selector with declarations; matching an element makes the declarations candidates for the cascade, not guaranteed winners. Modern style rules can also contain nested rules.
Formal Syntax & Structure
css syntaxcss
selector { property: value; }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><p id="other">Other note</p></body></html>