Understand Cross-Site Scripting (XSS) attacks. Learn the differences between Reflected, Stored, and DOM XSS, and how to prevent them through input encoding.