How are the DNA fragments separated by gel electrophoresis

How are the DNA fragments separated by gel electrophoresis visualised and separated for use in constructing recombinant DNA.

A compound called Ethidium Bromide (EtBr) stains DNA, which on exposure with ultraviolet radiationals gives orange light. Hence, DNA fragments appear as orange bands.