Wednesday, September 7, 2011

Link css in separated file

It have same output as last post Simple usage of css, with css in separated file.


<html>
<head><title>Test CSS</title>
<link rel="stylesheet" href="mycss.css" type="text/css">
</head>
<body>
<h1>i can code! for Web</h1>
<p>Test CSS</p>
</body>
</html>



mycss.css

body { margin-left: 30px; margin-right: 15px; background-color: #ffffff }
h1{font: bold italic 24pt helvetica}
p { font-size: 20px; }




1 comment:

  1. That was really simple and interesting code for separating files in CSS.
    Cheers !
    web design company

    ReplyDelete