Home : Advice : CSS : Creating CSS

In this tutorial you will learn how to create a style sheet for your webpage. A style sheet defines the style of your page. They are good to use for many reasons:

1. Clean code
2. Less code
3. Saves you time when you need to change the style of your page

Style Sheet Example

<style type="text/css">
<!--
body { color : #000000; font-family : Geneva, Arial, Helvetica, sans-serif; font-size : medium; }
td { color : #000000; font-family : Geneva, Arial, Helvetica, sans-serif; font-size : medium; }
-->
</style>

Place this between your <head> tags of your HTML document. Now all content that is in your HTML document will have the style defined in this style sheet. This is because the css has redefined the tags of your HTML document. In this example I changed the td and body tag. You can customize the style by changing the CSS elements:

font-family :
font-style :
color :
font-size :
font-weight :
background-color :


Copyright 2004 - 2005 FREEWEBHOSTINGADVICE.COM Contact | Privacy Policy & Legal