Learn More

Tuesday, July 26, 2011

Knowing CSS

css logo
You must display your website or blog interesting. By using only the HTML result will not be interesting. Because HTML does not work to beautify your blog. Of course, you will need additional knowledge in order to blog or your website look attractive. That is CSS (Cascading Style Sheets). Yes, the CSS function to how to display HTML Elements

For example, of course you want your typeface of the text varies. Or your background blog (web) is full-color pull, can all be accomplished with a single CSS.

Writing the CSS code is also easy, CSS apply two main sections. The first is selector and the second is declaration. Selector is the name of the HTML element which you want to style. Meanwhile, the declaration consists of property and value. Each declaration may contain two or more properties (including the value).

selector first declaration second declaration
h {color:black;text-align:center;}

A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly brackets.
When you want to give style to HTML Elements, CSS provides convenience in your own specialized selector. The first one id selector, which serves specialized style to a single element. While the other is a class selector, the style serves to specialize in the element.

Post a Comment