What is the difference between class selectors and id selectors?

An overall block is given to class selector while id selectors take only a single element differing from other elements.