CSS is composed of style rules with selectors, properties, and values that apply formatting to HTML elements. Selectors target elements by type, id, or class, allowing styles to be defined for paragraphs, headlines with an id of "intro", or any elements sharing a class. For example, style rules can set all paragraphs to red text and 130% font size or target an element with id "intro" to have white text on a gray background.