INTRO


A website is the fastest, cost efficient and the most informative medium of the current era.Website is a strong marketing tool, which can help popularize a business or institutions. This site provides you useful notes related to web designing for starters and Web design Downloads...

Monday, May 13, 2013

Cascading Style Sheets

CSS stands for cascading style sheets.
CSS is a language, separate from HTML or XHTML.
CSS used to specify the layout or formatting properties of HTML elements.
From a single CSS file you can control entire sites: 
font type, font and element colour, padding, margins, element positioning

CSS allows developers to separate style (look, appearance, colours, fonts, and layout) from the pages structure. CSS has a simple syntax and uses a number of English keywords to specify the names of various style properties. 
A style sheet consists of a list of rules. Each rule or rule-set consists of one or more selectors and a declaration block. A declaration - block consists of a list of semi colon-separated declarations in braces. Each declaration itself consists of a property, a colon (:), a value, then a semi-colon (;) 
In CSS, selectors are used to declare which of the markup elements a style applies to, a kind of match expression. Selectors may apply to all elements of a specific type, or only those elements which match a certain attribute; elements may be matched depending on how they are placed relative to each other in the markup code, or on how they are nested within the document object model. 
Pseudo-classes are another form of specification used in CSS to identify markup elements, and in some cases, specific user actions, to which a particular declaration block applies. An often-used example is the :hover pseudo-class that applies a style only when the user 'points to' the visible element, usually by holding the mouse cursor over it. It is appended to a selector as in a:hover or #elementid:hover. Other pseudo-classes and pseudo-elements are, for example, :first-line, :visited or :before.
A special pseudo-class is :lang(c), "c". 
A pseudo-class selects entire elements, such as :link or :visited, whereas a pseudo
-element makes a selection that may consist of partial elements, such as :first-line or :first-letter. 
Selectors may be combined in other ways too, especially in CSS 2.1, to achieve greater specificity and flexibility.

No comments:

Post a Comment