CSS

7x puncte

categorie: Informatica

nota: 10.00

nivel: Facultate

CSS stands for Cascading Style Sheets. Style sheets give the designer of an HTML document many more options for formatting the layout of the document and separate the structure of the page from its form. Thus, the page's basic structure is left to HTML and its form is left to CSS. This means that styles sheets define how HTML elements are to be displayed. CSS add no content to an HTML page, their [...]
DOWNLOAD REFERAT

Preview referat: CSS

CSS stands for Cascading Style Sheets. Style sheets give the designer of an HTML document many more options for formatting the layout of the document and separate the structure of the page from its form. Thus, the page's basic structure is left to HTML and its form is left to CSS. This means that styles sheets define how HTML elements are to be displayed. CSS add no content to an HTML page, their purpose is to add style to the HTML elements.

The selector is normally the HTML element/tag that is defined; the property is the attribute defined for the element; each property can have a value. The property and value are separated by a colon and surrounded by curly braces. An example of a statement:
body {background-color: #66cc99;}
The above rule consists of a selector (body), properties (background-color) and values (in this case, #66cc99).
If the value is made up of multiple words, it must have quotes around it. Another example:

The class selector is used to define different styles for the same type of HTML element. Example:
p.right {text-align: right}
p.center {text-align: center}
Here there are defined two types of paragraphs for a document: one right-aligned paragraph, and one center-aligned paragraph. These two styles are used like this:

This paragraph will be right-aligned.



This paragraph will be center-aligned.

If the tag name is omitted in the selector the style defined can be used by all HTML elements that have that class. In the next example, all HTML elements with class="center" will be center-aligned:
.center {text-align: center}
The style is used like this:
DOWNLOAD REFERAT
« mai multe referate din Informatica

CAUTA REFERAT


TRIMITE REFERAT CERE REFERAT
Referatele si lucrarile oferite de E-referate.ro au scop educativ si orientativ pentru cercetare academica.