Grouping and Combining Selectors
Learn how to group CSS selectors with commas, use descendant and child combinators, and master adjacent and general sibling selectors to write cleaner, more precise stylesheets.
Learn how to group CSS selectors with commas, use descendant and child combinators, and master adjacent and general sibling selectors to write cleaner, more precise stylesheets.
Learn how universal, type, class, and ID selectors work in CSS. Understand specificity scores, why overusing ID selectors breaks your styles, and how to build clean, maintainable CSS.
Learn how to write CSS comments that actually help: section separators, browser fix notes, TODO tags, and stylesheet documentation habits your whole team will appreciate.
Learn CSS syntax: break down every part of a CSS rule, understand how selectors, declaration blocks, properties, and values work together, and write CSS with confidence.
Learn the three ways to add CSS: the CSS style attribute, internal CSS with the style tag, and external CSS code. See clear examples, pros and cons, and know exactly which method to use.