Pregunta de entrevista de Cognizant

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