the range validator will compare the input with given range let say we implement a range validator who validate that entered salary should not be greater than 10000 so we use range validator while compare validators compare the values of 2 different inputs like passwor and re-type password values