What are the three different types of cross-site scripting (XSS) attacks and what sort of harm can they do?

What are the three different types of cross-site scripting (XSS) attacks and what sort of harm can they do? Give specific examples of the harm. How can each of the types of attack be prevented?

Get a 10% discount on an order above $50
Use the following coupon code :DUE