CSS :optional represents form elements that aren't required. In a sense, it feels like : optional represents :not([required]) , but :optional is limited to just form fields. A decade ago HTML and CSS added the ability to, at least signal, validation of form fields with required attribute.
4 Comments
Sort: