- CSS stands for Cascading Style Sheets
- styles define how to display HTML elements
- HTML was never intended to contain tags for formatting a document; rather it is intended to define the content of a document
- when tags for formatting began to be added to HTML, CSS was created so that all formatting could be removed from an HTML document and stored in a separate CSS file
I have reviewed the rest the W3 CSS tutorial
I have reviewed the CSS Tutorial, starting with HTML and CSS
Hakon Lie and Bert Bos, Cascading Style Sheets, Designing for the Web. 2nd ed. Addison Wesley, 1999.
- a rule is a statement about one stylistic aspect of one or more elements
- a style sheet is a set of one or more rules that apply to an HTML document
- a rule consists of a selector and a declaration
- selector - link between HTML document and the style; specifies what elements are affected by the declaration
- declaration - part of the rule that sets forth what the effect will be
- a declaration has two parts
- part before the colon = property
- quality or characteristic that something possesses
- part after the colon = value
- precise specification of the property
- a selector may have may have more than one declaration
- identical selectors can be grouped together on one declaration
- the style sheet must be "glued" to the document in order to affect the HTML