Training

Chapter 2 核心基础

Source code

/* style.css */
h1 {
    color: #f00;
}

4个概念

  1. 选择器 selector h1
  2. 样式声明 declaration color: #f00;
  3. 样式属性 property color
  4. 样式值 value #f00