The technique of gel electrphoresis is used to disparate micromolecules as DNA, RNA and proteins. DNA fragments are distinct to their size.So small molecules travel more fastly through the gel than larger DNA molecules.you can also find the lenght of DNA fragments.
hope this will help you