Insertion sort uses a for loop to iterate through each element starting from index 1 in an array. Inside the loop, you use a while loop to check previous elements before the current item. Insert the current element in a position so that all elements before current position are sorted.