Custom css selector. Selectors in CSS. What is the difference between class and id

CSS contains style rules that are interpreted by the browser and then applied to appropriate elements in your document. A style rule consists of three parts: