Attributes and tooltip validations

In the record module (not in the code module) I would like to know the below validations

* How can I validate the attribute color of a text 

* How can I validate text in the tooltip