3. Definition
• CSS is a stylesheet language that describes the
presentation of an HTML (or XML) document
(w3school.org). It’s style sheet which means if
you want to give style to sheet, if you want to
format your sheet, you have a tool to assist
you.
4. Usability
• CSS describes how elements must be
rendered on screen, on paper, or in other
media. It makes you site beautiful.
5. Property
• The CSS syntax is composed of two parts.
• A selector and a declaration (one at least).
• The selector can be any html element, such
as:
• <p>, <table>, <img>,
• The declaration has a property name and a
value, like : color is a property, red is a value;
• font-size is a property , 12 or 14 is the value
6. Different types of selector
• Element selector: based on the html Element
• Id Selector: based html Id attribute(# plus id)
• Class selector: class attribute(period plus
element)
• Grouping selector: Element with the same
style can be grouped.
7. CSS Punctuation
CSS uses semi-colon, colon and brackets.
The property is separated from the value by a
colon, the declaration ends with semicolon
and the declaration which is the property and
value are insides brackets.
We use semicolon to end the property value.