A closet flange (the drainpipe flange to which a flush toilet is attached) is a specialized flange designed to be flush with the floor, allowing a toilet to be installed above it. The flange must be mechanically strong to accommodate slight misalignments or movements and resist corrosion.