Learn the strict anatomy of a CSS rule, how to group selectors to write clean code, write comments, and avoid common syntax mistakes.
1h1 { /* h1 is the Selector */2 color: red; /* color is the Property, red is the Value */3}1/* This rule is ignored */2/* .box { background: red; } */3 4.box {5 color: green;6}1.circle, .square, .pill {2 background-color: #f39c12;3 border: 4px dashed #d35400;4 box-shadow: 5px 5px 0px #333;5}1/* BROKEN CSS */2p {3 color: red /* <-- MISSING SEMICOLON (Error!) */4 font-size: 12px;5}6 7h1 /* <-- MISSING CURLY BRACES */8 color: blue;