View Single Post
  #2 (permalink)  
Old 06-09-2004, 11:34 PM
matauri matauri is offline
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

If you do a search for CSS, you will find many many articles on style sheets.

But a basic explanation....

Instead of putting formatting (colour,fonts, etc) in your html page, you are instead assigning a class or id to each tag as an attribute.
Example:
<p class="paragraph1"></p>
instead of...
<p font face="verdana" size="2" color="#ffffff"></p>

So, you have taken all the excess code out of your html page, & have it able to be called on for use (even with other tags, and other pages) in another file.

At the top of your page you are calling a style sheet to be loaded. When the page loads, it calls from the .css file (the stylesheet) the class or id to apply into that particular area of the html page.

Hope this helps .
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote