Gel electrophoresis is a technique used to separate and analyze DNA fragments based on their size and charge. In this process, DNA is positioned at the black-cathode end because DNA is negatively charged due to the phosphate groups in its backbone. Since opposites attract, the negatively charged DNA is attracted to the positive charge at the black-cathode end. If the DNA-containing wells are misplaced at the anode end, the DNA fragments would migrate in the opposite direction and not separate properly. The charge on DNA is negative, and this negative charge allows it to move towards the positive electrode during electrophoresis. DNA fragments migrate on the gel based on their size, with smaller fragments moving faster and further than larger fragments.