Tuesday, November 1, 2011

Syntax CSS

1 selector, 1 property, 1 value.

Format  CSS:
selector { property: value }
Selector to indicate which parts are going to set up / formatted.

Property to show, the (property) of the selector who want to set.

Value is the value of its settings.

Syntax example:
h1 { color: red } 
 The example above shows
Selector: h1
Property: color
Value: red
 If translated into Indonesian sentence roughly like this: Set the color of h1 to red (red).

No comments:

Post a Comment