Let X and Y be the topological spaces, ans assume that A⊂X and B⊂Y. Then the topology on AxB as a subspace of the product XxY is the same as the product topology on AxB, where A has the subspace topology inherited from X and B has the subspace topology inherited from Y.