The answer to 'types of drain trap' is that there are several common types of drain traps used in plumbing systems. The most common are the P-trap, S-trap, and U-trap. These traps are designed to create a water seal that prevents sewer gases from entering the home and causing odors.
P-traps are the most common type and are typically installed under sinks, tubs, and showers. They form a 'P' shape and hold a small amount of water to block odors. S-traps and U-traps serve a similar purpose but have slightly different configurations. All drain traps need to be properly installed and maintained to function effectively.