concept
grammar-multipliers — CSS reference
Multipliers apply to the preceding component or group: ? means optional, * zero or more, + one or more, {m,n} a bounded count, and # a nonempty comma-separated list by default (a range can follow #). A group followed by ! must produce at least one component even if all members are optional.
Formal Syntax & Structure
css syntaxcss
A? A* A+ A{1,4} A# [ A? B? ]!Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {padding:4px 8px 12px 16px}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>