1 | CSS1 allows one to specify layout styles (size, color, position) and associate in flexible way with tags |
2 | Flexible placement of style information -- either in sheets (i.e. separate pages), attributes (style="..") or style statements in header of HTML page |
3 | Independence from specific scripting languages but natural link to JavaScript and works with XML and HTML |
4 | Cascading style sheets i.e. one can have a hierarchy of style definitions from general to organization specific to user specific |
5 | Example: A simple style sheet (in file "myStyle.css"): P.special { color: red; border: solid black; } |
6 | Now put a <LINK> tag in the <HEAD> to be able to access information: <LINK href="myStyle.css" rel="stylesheet" type="text/css"> |
7 | In the <BODY> tag, type: <P class="special">A special paragraph! |