http://www.w3schools.com/css/
A tutorial for CSS with specific examples.
CSS: Cascading Style Sheets
- HTML was not intended to contain tags for formatting. In order to format documents, CSS is needed as to define how to display HTML elements
- Styles are normally saved in external .css files. Therefore, people can edit one single file when changing the appearance and layout of all the pages
- Selector: points to the HTML elements we want to style
- Declaration: each of them include a property name and a value, separated by a colon
- External style sheet: be used when the style is applied to many pages
- Internal style sheet: be used when a single document has a unique style
- Inline style: use this sparingly (loses many of the advantages of a style sheet)
- Multiple style: the value will be inherited from the more specific one
CSS tutorial: starting with HTML + CSS
http://www.w3.org/Style/Examples/011/firstcss
A very specific and vivid example which explained not only how to create HTML and CSS files, but also how to make them work together.
Explained how to add color and fonts, create navigation bar, styling links, and horizontal line separately with corresponding codes.
Chapter 2 of the book Cascading Style Sheets, designing for the web by Hakon Wium Lie and Bert Bos (2nd edition)
http://www.w3.org/Style/LieBos2e/enter/
An introduction to CSS
CSS rule: a statement about one stylistic aspect of one or more elements. A set of one or more rules that apply to an HTML document is a style sheet.
CSS-enhanced browser is needed for CSS to work.
Common tasks:
- Setting colors & backgrounds
- Setting fonts and margins
- Links
This week's reading is really interesting. By knowing more about CSS and how to make my website looks good, creating HTML files becomes more fun to me.

No comments:
Post a Comment