3. Why CSS?
• Function
– separate a document‘s structure from its
presentation 使web文档的结构与表现分离
– Easy of Use
• a single rule can control all elements in the document.
• instead of
4. How to use?
• 3 way to Bringing CSS and XHTML Together +1
– The link Tag
– @Import
– Inline Styles 内联 use HTML attribute style
5. Somethings else in chapter 1
• 样式层叠性 cascade
• Css注释 /**/
• Element 元素
– 替换(img)|非替换元素()
– 块元素(div p)|行内元素em a strong