Add required property to an element.