The answer to 'types of drain trap' is that there are several common types of drain traps used in plumbing systems to prevent sewer gases from entering the home. The most common types are the P-trap, S-trap, and J-trap.
A P-trap is the most common type and is shaped like the letter 'P'. It holds a small amount of water that creates a seal to block sewer gases. An S-trap is similar but shaped like the letter 'S'. A J-trap is U-shaped and also holds water to create a seal. All of these traps work by maintaining a water barrier to prevent odors and gases from coming back up the drain.