CCT286H5 Chapter Notes - Chapter 10: Html Element
Document Summary
Week 2 - duckett chapter 10: introducing css. Css (cascading style sheets) - allows you to create rules that specify how the content of an element should appear. The key to understanding how css works is to imagine that there is an invisible box around every html element. Css allows you to create rules that control the way that each individual box is presented. Block elements - elements that start on a new line ( - , and ) Inline elements - elements flow within the text; do not start on a new line (, , ) Boxes - width and height, borders, background colour, images, position. Specifics - specific elements such as lists, tables and forms. Css works by associating rules with html elements. Css contains two parts: a selector and declaration p { //