Loading tutorials
color and margin. Here you will learn the three selectors you use most, what each one matches, and when to pick which.5 min read* selector: what it matches, what it costs in specificity, and where it behaves unexpectedly. It assumes you can write type, class, and ID selectors, and that you know a rule has a selector and a declaration block. You should also know that specificity is a score used to se5 min read> and +. Here you learn the arithmetic the browser uses when two rules with different selectors target the same element and set the same property.5 min read!important flag changes that comparison in ways that sur5 min read!important works. Cascade layers add a step to that order: layer position is checked before speci5 min read!important, and @layer fit into the cascade. Here you will use that knowledge to write stylesheets that stay easy to change.6 min read