CSS de champ requis

/* style all elements with a required attribute */
:required {
  background: red;
}
Uptight Unicorn