Site Studio Designer Guide > Defining Site Assets > Validation Scripts > About Validation Scripts
You can enforce site rules such as what content is added using your own validation scripts. Validation scripts can only be written in Javascript.
Validation scripts are associated with element definitions, and are used to validate the edits that contributors make.