The :optional
pseudo-class finds any input elements that do not have the required
attribute set. It allows forms to easily mark optional fields and style them appropriately.
You can use the :required
pseudo-class to give a special appearance to required form fields.
input:optional {
property: value;
}