CSS Stands for: Cascading Style Sheets |
<STYLE> </STYLE> |
Is used to specify style sheet elements which reside in the head of a document. Example: <STYLE type="text/css"> body {font-family:sans-serif;font-size:12pt;}</STYLE> Can also be used as an inline element. Example:<UL style="font-size:15pt"> |
<LINK> |
Is used to reference a document's style sheet from a .css document that contains only style sheet elements. Example:
<link rel="stylesheet" href="reference2.css" type="text/css"> |
CLASS |
Is used to assign a particular style to a certain element inside the body of a document. Example: H4.BOLD {font-weight:bold; } |
ID |
Is used to individually name a style. Thus you could specify, within an element, a class and an id. Example:
|
<SPAN> </SPAN> |
Is used to apply style sheet elements to specific text. Example: <SPAN style="color:#CC0000;font-weight:800;font-style:italic">This text is bold, red, and italic.</SPAN> |
/*COMMENT */ |
Comments for style sheets help guide a programer inside the coding his style sheet, which can not be viewed from the surfer side of a browser. Example:
P {font-size:12pt; font-family:verdana, Arial; } |