CSS — Selectors
Selectors are used to target the specific HTML elements you want to style. Common types of selectors include: Element selectors (like p or h1) which target all elements of that type, Class selectors (.classname) which style one or more elements with the same class, and ID selectors (#id) which style a single unique element. Using selectors correctly helps you apply styles efficiently and keep your code organized. For example, you might use .button to style all buttons and #header for one special top section.
p { color: red; }
#main { padding: 10px; }
.box { background: yellow; }