CSS (Cascading Style Sheets) Is A Formatting Language
CSS (Cascading Style Sheets) Is A Formatting Language
CSS has far bigger designer possibilities from pure HTML. Today,
CSS is irreplaceable in Web pages design.
The first version of CSS was created in 1996.
Advantages of CSS:
- Eases Web page writing.
- It saves space on the host.
- Opens pages faster (a CSS file can be applied on more than
one HTML page).
CSS rules 1
CSS rules 2
CSS rules 3
CSS rules 4
This means that the inline of CSS (inside the HTML element) has
the highest priority, which means that it will run over every
definition of the three previous types of styles. The style defined
inside the head section of the document is older than the extern
file and the browser default.
Characteristics
Values
Measurement units
Picture as background
Fonts
With the help of different characteristics you can choose the font,
to change to size and to give characteristics as are bold and italic.
Example 3: h1 {
font-family: Verdana, Tahoma, Arial, Helvetica;
font-size: 14px;
color: #00F00;
font-style: italic;
font-variant: small-caps;
}
CSS offers you many options for defining the styles of text
appearance:
Text