EchoEcho.Com Homepage
Web Hosting - As Reliable As It Gets!
   Home > Tutorials > CSS > Levels


 Tutorials 
 D-Zine Articles 
 Online Tools 
 Free Resources 
 References 
 Quiz 
 Hosting 

















  CSS: WHERE TO PLACE IT :
SINGLE TAGS








CSS can be defined for single tags by simply adding style="styledefinition:styleattribute;" to the tags.

Look at this example:

It is <b style="font-size:16px;">NOT</b> me.


You should limit your use of single tag CSS.

If you define your styles for each and every tag they're used on, you will lose much of the power associated with CSS.

For example, you will have to define the style over and over again whenever it's used, rather than just defining it once and then referring to that one definition whenever it's used.

Furthermore, if you wanted to change a certain style, you'd have to change it all over in your document, rather than in one place.




 << PREVIOUS
READ MORE >>  
















DEVELOPER TIP!
FACT:
Web browsers use a standard margin when displaying web pages.
TIP:
Add:
topmargin=0
leftmargin=0
marginheight=0
marginwidth=0

to your <BODY> tag to get rid of the margins.





     "Better Than Books - As Easy As It Gets!"


On EchoEcho: D-Zine Articles | Tutorials | Online Tools | Free Resources | References | Quiz | HostingAbout EchoEcho