Wednesday, June 5, 2013

Include Style sheet css file in the webpage

You can create your style sheet file and save it as .css file under folder css

for example :

css/global.css

body{
    margin:0;
    padding:0;
    font-family:Helvetica,Arial, Verdana, sans-serif;
    color:#eeeeee;
}
form{
    margin:0;
}
a{
    color:#0000ff;
    text-decoration:none;
}


In your webpage (.html), include the css file into the header tag:

for example:

index.html

<html>
   <head>
      <title>Html CSS Guru</title>  
      <link href="css/global.css" rel="stylesheet" type="text/css"/>
    </head>

    <body>
       This is a sample page 
    </body> 
</html>