CSS Example: Inline Form Validation
:valid/:invalid paired with :placeholder-shown gives 'stay quiet until typed, speak up when wrong': a green ✓ floats in for a legal email, a red ✗ plus border for an illegal one — a validation state machine in pure CSS.
🧩 Keep Learning