XSS known as Cross Site Scripting involves the injection of code. What Code? This website ( Link ) gives great examples of the actual code. By studying this code, a webmaster can get a thorough understanding of the code that can be injected. Without viewing this site negatively, it is a great learning tool.
LEARN HACK TO PROTECT YOUR SELF | CERTIFIED ETHICAL HACKING