Answer:
1. Class selector can be given to an overall block. This is sometimes termed as block element as well, whereas ID selector identifies a unique name and a style for a specific element.
2. ID selector declares the style for only one particular element which can be differentiated from other element, whereas Class selector is being given for the whole complete block.
Example of ID selector is being written like this:
#idname {color: red; background: black;}
This can be used in HTML as
<P ID= “idname”>this element only will be affected by the use of this ID element</P>