選擇器(selector),宣告適用式樣的「對象」,其中包含元素(element)、類別(class)、識別碼(ID)等。設定對象之後,接著在「宣告式樣區」設定屬性及其屬性值。
body {background:black;}
body
div.heading {color:blue;}
div
body#heading {background:black;}