Cognizant interview question

Q. How can you create a custom directive? What is structure direvtive?