The ID and the CLASS in CSS are closely related with the ID and the CLASS in a document language, such as HTML, respectively. I think that the clue for understanding CSS ID and CSS CLASS is to understand the differences between ID and CLASS in a document language first. The key difference between ID and CLASS in a document language is that ID must be unique in a document, but CLASS may not be.