![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||
| 背景(Background) | 字型(Font) | 文字方塊(Text) | 清單(List) |
| 區塊(Box) | 表格(Table) | 版面配置(Display) | 內容(Content) |
| 介面(Interface) | 聲音(Voice) | 印刷(Print) |
選擇器(selector),宣告適用式樣的「對象」,其中包含元素(element)、類別(class)、識別碼(ID)等。設定對象之後,接著在「宣告式樣區」設定屬性及其屬性值。

body {background:black;}body元素的背景色設為黑色。div.heading {color:blue;}div元素內的文字顏色設為藍色。body#heading {background:black;}div元素內的文字顏色設為藍色。