CSS properties base on the following general syntax:
HTML element (in which the property is to be used) (Self-term1: value; Self-term2: value;)
All properties of an element are, therefore, in a curly brackets (()) and are indicated by a semicolon (;) separated. For each property there is the property, first, then a colon (:) and then the value of the property. An example:
p { font-family:Arial; }
This property applies to the p tag in HTML which is the property of font family and has a value of Arial. Therefore, all p tags with the font Arial written.
Selectors
Selectors in CSS to specify the element for which a claim is valid CSS. A selector is the what in a CSS specification before the bracket is curved. In this case, the relevant HTML elements can be easily separated by commas in a row set. An example:
p,div,ol,ul { color:#000000; }
In this example, the black font color, for all p, div, ol and ul elements.
Often one would like to achieve exactly the opposite: A property is only for the subset of an HTML element application. For instance, only a portion of all p-paragraphs should be a blue font color. In this case there are 2 options: You can have classes or ID’s form. Of course, you can also direct the element with a style but once this formatting is used, it will be useful every time they do not re-specify them.