first and foremost thing that you need to consider is suitable flange type. however, it is not the only factor. one of the determining characteristics is type of facing. face type also decides about gaskets needed.
different face types are
flat facing
as the name suggests, surface of this type is even to accommodate gasket in its entirety
raised facing
it has elevation around its bore to fit a circle gasket inside it.
male and female
it contains complementing elements where one part has grooves while another contains elevated portions both of which fit into each other. female part retains gasket.
ring joint type
used in extreme conditions, this mainly lodges gasket in its groove to create a seal.
tongue and groove
as name implies, such facing has a grooved and a raised part which functions as firm retainer when seated into each other.
they are further categorized as serrated and smooth flanges.
choosing right type of facing from flange supplier is essential for purpose of impeccable gasket selection and hence the seal.