Validate classes, attrs and styles.