Friday, October 26, 2012

Reading Thoughts for 10/29

* CSS stands for "Cascading Style Sheets" and is a way to express programming language for HTML, XHTML, and XML.
* HTML was not originally designed to show stylistic choices. Although those kinds of things were added to HTML, it's clunky. CSS solves this problem.
* CSS rules have two parts: the selector (the element you want to style, like fonts or tables) and the declaration(s) (colors, sizes, etc.).
* You can add comments into your CSS code by delimiting them with /*COMMENT*/ - these are only visible in the code and won't show up on the published webpage.
* There are three different ways to insert CSS: external style sheet, internal style sheet, and inline style.
* You can also have background properties in CSS - images, colors, etc. You can format your links, and you can change the font styles and colors as well.
* CSS is particularly awesome for tables - they have a much more polished appearance than regular HTML tables.
* "The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, borders, padding, and the actual content."
* You can group or nest selectors.
* Writing CSS code seems pretty simple if you already know how to code HTML.
* You can write code by hand using a text editor, or you can use a web design tool (like DreamWeaver) to write the code for you.
* Styles can be carried from page to page, or you can attach parts of that style to different pages in your site.

No comments:

Post a Comment