What is the difference between equity shares and preference shares?

Can you explain what is the difference between equity shares and preference shares? in detail?