rs79.vrx.palo-alto.ca.us
CSS Quick Reference

CSS Quick Reference
One: Different ways to use CSS statements

The idea behid CSS is that you can use it to alter any HTML property; lets use a trivial example, and say you want <H2> text to be RED. We need to simply modify the <H2> element, and there are different ways to do this:

Fig 1.0 CSS used inline in a single element.

Fig 2.0 CSS defined in the HTML file as a style that affects all <H2> elements


HTML file: "three.html".

CSS file: "three.css".
Fig 3.0 CSS defined in another file as a style that affects all <H2> elements


HTML file: "four.html".

CSS file: "four.css".
Fig 4.0 CSS included from another file as a style that affects all <H2> elements