Class names and identifiers are case sensitive, so they must have the same enclosure.
Therefore, div.MyClass does not coincide with div.MyClass.
Element (in HTML) and pseudo-classes (everywhere) are not case sensitive, therefore DIV:hover matches with DIV:hover.
For more information read the spec .
SLaks source
share